Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00182/0.00182, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002099/0.002099, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2291/0.2291, allocations: 46.9 MB / 357.4 MB, free: 10.46 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002391/0.002391, allocations: 75.88 kB / 0.4912 GB, free: 8.293 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1356, allocations: 66 MB / 0.5557 GB, free: 6.168 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003869/0.1395, allocations: 1.916 MB / 0.5575 GB, free: 4.234 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001272/0.1408, allocations: 0.5805 MB / 0.5581 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.1409, allocations: 4 kB / 0.5581 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001565/0.1411, allocations: 23.72 kB / 0.5581 GB, free: 3.621 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1412, allocations: 43.64 kB / 0.5582 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.1415, allocations: 47.88 kB / 0.5582 GB, free: 3.531 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.1418, allocations: 143.3 kB / 0.5584 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.142, allocations: 52.08 kB / 0.5584 GB, free: 3.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002327/0.1422, allocations: 67.72 kB / 0.5585 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.1423, allocations: 63.75 kB / 0.5585 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.1424, allocations: 16 kB / 0.5586 GB, free: 3.195 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.204e-05/0.1424, allocations: 16 kB / 0.5586 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/0.1425, allocations: 31.8 kB / 0.5586 GB, free: 3.148 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.1425, allocations: 67.66 kB / 0.5587 GB, free: 3.082 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.1428, allocations: 159.3 kB / 0.5588 GB, free: 2.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1428, allocations: 0 / 0.5588 GB, free: 2.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1428, allocations: 0 / 0.5588 GB, free: 2.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.1429, allocations: 0 / 0.5588 GB, free: 2.926 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.00069/0.1435, allocations: 442.8 kB / 0.5592 GB, free: 2.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.1436, allocations: 12.02 kB / 0.5592 GB, free: 2.434 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/0.1437, allocations: 42.75 kB / 0.5593 GB, free: 2.383 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.1438, allocations: 24.83 kB / 0.5593 GB, free: 2.359 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.1442, allocations: 220.2 kB / 0.5595 GB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.1442, allocations: 8.375 kB / 0.5595 GB, free: 2.098 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.1442, allocations: 20.27 kB / 0.5596 GB, free: 2.078 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.1445, allocations: 125.6 kB / 0.5597 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1445, allocations: 4 kB / 0.5597 GB, free: 1.945 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.1445, allocations: 7.938 kB / 0.5597 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.1446, allocations: 4 kB / 0.5597 GB, free: 1.934 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.1448, allocations: 87.92 kB / 0.5598 GB, free: 1.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.1456, allocations: 460.4 kB / 0.5602 GB, free: 1.348 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1458, allocations: 118.4 kB / 0.5603 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1459, allocations: 52.78 kB / 0.5604 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.146, allocations: 4 kB / 0.5604 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.146, allocations: 30.56 kB / 0.5604 GB, free: 1.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.814e-06/0.146, allocations: 0 / 0.5604 GB, free: 1.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001686/0.1477, allocations: 0.8161 MB / 0.5612 GB, free: 224 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.1477, allocations: 59.41 kB / 0.5613 GB, free: 152 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.1479, allocations: 141.6 kB / 0.5614 GB, free: 0 / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.417e-05/0.1479, allocations: 29.7 kB / 0.5614 GB, free: 15.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.148, allocations: 108.4 kB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.1481, allocations: 79.36 kB / 0.5616 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/0.1482, allocations: 33.72 kB / 0.5616 GB, free: 15.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1483, allocations: 326.8 kB / 0.5619 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.1484, allocations: 43.97 kB / 0.562 GB, free: 15.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1486, allocations: 75.34 kB / 0.5621 GB, free: 15.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.1488, allocations: 135.4 kB / 0.5622 GB, free: 15.13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1488, allocations: 4 kB / 0.5622 GB, free: 15.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004166/0.1492, allocations: 210.2 kB / 0.5624 GB, free: 14.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.1493, allocations: 11.94 kB / 0.5624 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1493, allocations: 3.984 kB / 0.5624 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.1495, allocations: 44.86 kB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.1497, allocations: 35.92 kB / 0.5625 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/0.1515, allocations: 1.734 MB / 0.5642 GB, free: 12.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.86e-05/0.1516, allocations: 12.03 kB / 0.5642 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1516, allocations: 4 kB / 0.5642 GB, free: 12.93 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.1518, allocations: 129.8 kB / 0.5643 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.1518, allocations: 15.97 kB / 0.5643 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.1519, allocations: 17.19 kB / 0.5643 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1519, allocations: 3.938 kB / 0.5644 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.1519, allocations: 7.984 kB / 0.5644 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.1519, allocations: 0 / 0.5644 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009179/0.1528, allocations: 0.5525 MB / 0.5649 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1528, allocations: 4.031 kB / 0.5649 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.153, allocations: 35.92 kB / 0.5649 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.1531, allocations: 32.83 kB / 0.565 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.1531, allocations: 4 kB / 0.565 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.1545, allocations: 1.477 MB / 0.5664 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1545, allocations: 8.016 kB / 0.5664 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000547/0.1551, allocations: 342.2 kB / 0.5667 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.529e-05/0.1552, allocations: 93.03 kB / 0.5668 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.1552, allocations: 8 kB / 0.5668 GB, free: 9.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.1553, allocations: 4 kB / 0.5668 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.1553, allocations: 15.92 kB / 0.5669 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1553, allocations: 4 kB / 0.5669 GB, free: 9.934 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.1554, allocations: 117.8 kB / 0.567 GB, free: 9.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1554, allocations: 4.062 kB / 0.567 GB, free: 9.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003473/0.1558, allocations: 40 kB / 0.567 GB, free: 9.777 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009046/0.1567, allocations: 0.874 MB / 0.5679 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005776/0.1573, allocations: 250.8 kB / 0.5681 GB, free: 8.613 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1573, allocations: 0 / 0.5681 GB, free: 8.613 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003234/0.1576, allocations: 190.5 kB / 0.5683 GB, free: 8.414 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003762/0.158, allocations: 31.22 kB / 0.5683 GB, free: 8.387 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.161, allocations: 2.06 MB / 0.5703 GB, free: 6.219 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004751/0.1615, allocations: 0.7243 MB / 0.571 GB, free: 5.465 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.281e-05/0.1615, allocations: 9.422 kB / 0.5711 GB, free: 5.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.191e-05/0.1616, allocations: 43.42 kB / 0.5711 GB, free: 5.414 MB / 430.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1616, allocations: 3.938 kB / 0.5711 GB, free: 5.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03367/0.1953, allocations: 3.468 MB / 0.5745 GB, free: 2.062 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.76, allocations: 19.44 kB / 0.5745 GB, free: 2.047 MB / 430.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.927223048172891]