Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001599/0.001599, allocations: 116.7 kB / 19.18 MB, free: 3.762 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.001795/0.001795, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.516/1.516, allocations: 230.2 MB / 255.2 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2343/0.2343, allocations: 46.88 MB / 358.1 MB, free: 10.54 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0023/0.0023, allocations: 84.72 kB / 0.4924 GB, free: 26.7 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1373, allocations: 65.97 MB / 0.5568 GB, free: 8.668 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003489/0.1408, allocations: 1.935 MB / 0.5587 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1419, allocations: 0.5688 MB / 0.5592 GB, free: 6.141 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.575e-05/0.142, allocations: 4 kB / 0.5592 GB, free: 6.137 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.1421, allocations: 23.72 kB / 0.5592 GB, free: 6.113 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.1423, allocations: 43.64 kB / 0.5593 GB, free: 6.07 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002457/0.1425, allocations: 43.88 kB / 0.5593 GB, free: 6.027 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002208/0.1427, allocations: 155.2 kB / 0.5595 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.1429, allocations: 52.09 kB / 0.5595 GB, free: 5.824 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.1431, allocations: 59.83 kB / 0.5596 GB, free: 5.766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1432, allocations: 67.7 kB / 0.5597 GB, free: 5.699 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.1432, allocations: 12 kB / 0.5597 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.111e-05/0.1433, allocations: 15.94 kB / 0.5597 GB, free: 5.672 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.223e-05/0.1433, allocations: 35.89 kB / 0.5597 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.927e-05/0.1434, allocations: 71.61 kB / 0.5598 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.1437, allocations: 155.3 kB / 0.5599 GB, free: 5.414 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1437, allocations: 4 kB / 0.5599 GB, free: 5.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1437, allocations: 0 / 0.5599 GB, free: 5.41 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1437, allocations: 0 / 0.5599 GB, free: 5.41 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.0006919/0.1444, allocations: 442.8 kB / 0.5604 GB, free: 4.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1444, allocations: 8.031 kB / 0.5604 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.1446, allocations: 28.78 kB / 0.5604 GB, free: 4.895 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.1449, allocations: 216.2 kB / 0.5606 GB, free: 4.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.1449, allocations: 8.375 kB / 0.5606 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.1449, allocations: 16.33 kB / 0.5606 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.1452, allocations: 129.8 kB / 0.5607 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1453, allocations: 0 / 0.5607 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.1453, allocations: 4 kB / 0.5607 GB, free: 4.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.1453, allocations: 7.938 kB / 0.5608 GB, free: 4.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.1455, allocations: 87.94 kB / 0.5608 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000741/0.1462, allocations: 460.3 kB / 0.5613 GB, free: 3.891 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.1465, allocations: 114.4 kB / 0.5614 GB, free: 3.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.1466, allocations: 56.83 kB / 0.5614 GB, free: 3.711 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.125e-05/0.1466, allocations: 4 kB / 0.5614 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.1466, allocations: 34.56 kB / 0.5615 GB, free: 3.664 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.243e-06/0.1466, allocations: 0 / 0.5615 GB, free: 3.664 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001627/0.1483, allocations: 0.8134 MB / 0.5623 GB, free: 2.762 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.1483, allocations: 55.41 kB / 0.5623 GB, free: 2.695 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.1485, allocations: 144 kB / 0.5625 GB, free: 2.547 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.1485, allocations: 25.7 kB / 0.5625 GB, free: 2.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.923e-05/0.1486, allocations: 116.4 kB / 0.5626 GB, free: 2.395 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.456e-05/0.1486, allocations: 75.36 kB / 0.5627 GB, free: 2.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-05/0.1487, allocations: 37.7 kB / 0.5627 GB, free: 2.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1489, allocations: 330.8 kB / 0.563 GB, free: 1.945 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.779e-05/0.149, allocations: 35.98 kB / 0.5631 GB, free: 1.91 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.1491, allocations: 83.28 kB / 0.5631 GB, free: 1.816 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.1493, allocations: 131.3 kB / 0.5633 GB, free: 1.676 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1493, allocations: 4 kB / 0.5633 GB, free: 1.672 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000391/0.1497, allocations: 202.3 kB / 0.5635 GB, free: 1.465 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.1497, allocations: 7.938 kB / 0.5635 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1497, allocations: 0 / 0.5635 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001986/0.1499, allocations: 44.83 kB / 0.5635 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.1501, allocations: 35.92 kB / 0.5635 GB, free: 1.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.1518, allocations: 1.749 MB / 0.5652 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.331e-05/0.1519, allocations: 4 kB / 0.5653 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.1519, allocations: 8 kB / 0.5653 GB, free: 15.47 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.0001261/0.1521, allocations: 125.8 kB / 0.5654 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.1521, allocations: 15.91 kB / 0.5654 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.444e-05/0.1522, allocations: 17.17 kB / 0.5654 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1522, allocations: 7.938 kB / 0.5654 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1522, allocations: 4.062 kB / 0.5654 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1522, allocations: 0 / 0.5654 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008191/0.153, allocations: 0.5488 MB / 0.566 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.153, allocations: 0 / 0.566 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1532, allocations: 39.92 kB / 0.566 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001256/0.1533, allocations: 40.89 kB / 0.566 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1533, allocations: 4 kB / 0.566 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.1546, allocations: 1.477 MB / 0.5675 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1546, allocations: 0 / 0.5675 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005277/0.1551, allocations: 345 kB / 0.5678 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.303e-05/0.1552, allocations: 93.17 kB / 0.5679 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.1552, allocations: 4 kB / 0.5679 GB, free: 12.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.47e-05/0.1553, allocations: 8 kB / 0.5679 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.1554, allocations: 19.91 kB / 0.5679 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.276e-05/0.1554, allocations: 4 kB / 0.5679 GB, free: 12.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.807e-05/0.1555, allocations: 108.3 kB / 0.568 GB, free: 12.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1555, allocations: 0 / 0.568 GB, free: 12.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.1558, allocations: 36 kB / 0.5681 GB, free: 12.34 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.0001442/0.156, allocations: 107.2 kB / 0.5682 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005529/0.1565, allocations: 254.8 kB / 0.5684 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1565, allocations: 0 / 0.5684 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.1568, allocations: 186.6 kB / 0.5686 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.1572, allocations: 27.39 kB / 0.5686 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008673/0.158, allocations: 474.3 kB / 0.5691 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.1584, allocations: 0.7243 MB / 0.5698 GB, free: 10.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.366e-05/0.1584, allocations: 15.44 kB / 0.5698 GB, free: 10.48 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1584, allocations: 4 kB / 0.5698 GB, free: 10.48 MB / 430.1 MB Notification: Performance of Templates: time 0.004984/0.1634, allocations: 2.464 MB / 0.5722 GB, free: 8.016 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.985704167978838]