Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 112.5 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 207.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.59/1.59, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2341/0.2341, allocations: 46.93 MB / 357.8 MB, free: 10.3 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 59.91 kB / 0.492 GB, free: 7.477 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.143, allocations: 66 MB / 0.5565 GB, free: 5.352 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003338/0.1463, allocations: 1.934 MB / 0.5584 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1474, allocations: 0.5688 MB / 0.5589 GB, free: 2.832 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.1475, allocations: 3.938 kB / 0.5589 GB, free: 2.828 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1476, allocations: 23.78 kB / 0.559 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.522e-05/0.1477, allocations: 39.64 kB / 0.559 GB, free: 2.766 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002344/0.1479, allocations: 43.89 kB / 0.559 GB, free: 2.723 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.1481, allocations: 163.2 kB / 0.5592 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.1483, allocations: 41.66 kB / 0.5592 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.1485, allocations: 67.77 kB / 0.5593 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.1486, allocations: 63.7 kB / 0.5594 GB, free: 2.391 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.1486, allocations: 12 kB / 0.5594 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.1487, allocations: 16 kB / 0.5594 GB, free: 2.363 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.274e-05/0.1487, allocations: 35.84 kB / 0.5594 GB, free: 2.328 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.895e-05/0.1488, allocations: 63.67 kB / 0.5595 GB, free: 2.266 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.149, allocations: 159.3 kB / 0.5596 GB, free: 2.109 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.149, allocations: 0 / 0.5596 GB, free: 2.109 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.149, allocations: 4 kB / 0.5596 GB, free: 2.105 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.149, allocations: 3.938 kB / 0.5597 GB, free: 2.102 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.0006527/0.1497, allocations: 438.8 kB / 0.5601 GB, free: 1.625 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.1497, allocations: 8.031 kB / 0.5601 GB, free: 1.617 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.1499, allocations: 20.84 kB / 0.5601 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.1502, allocations: 220.1 kB / 0.5603 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1502, allocations: 8.375 kB / 0.5603 GB, free: 1.336 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.1502, allocations: 20.33 kB / 0.5603 GB, free: 1.316 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.1505, allocations: 133.7 kB / 0.5605 GB, free: 1.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1505, allocations: 0 / 0.5605 GB, free: 1.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.794e-05/0.1505, allocations: 4 kB / 0.5605 GB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1505, allocations: 4 kB / 0.5605 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.1507, allocations: 83.94 kB / 0.5605 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007433/0.1515, allocations: 468.3 kB / 0.561 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.1517, allocations: 114.5 kB / 0.5611 GB, free: 472 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1518, allocations: 48.84 kB / 0.5612 GB, free: 420 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.199e-05/0.1518, allocations: 3.984 kB / 0.5612 GB, free: 416 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1519, allocations: 38.5 kB / 0.5612 GB, free: 368 kB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.102e-06/0.1519, allocations: 0 / 0.5612 GB, free: 368 kB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001575/0.1535, allocations: 0.8113 MB / 0.562 GB, free: 15.46 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.1535, allocations: 59.34 kB / 0.562 GB, free: 15.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.1536, allocations: 143.2 kB / 0.5622 GB, free: 15.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.1537, allocations: 33.7 kB / 0.5622 GB, free: 15.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.1537, allocations: 112.4 kB / 0.5623 GB, free: 15.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.1538, allocations: 71.38 kB / 0.5624 GB, free: 15.01 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.1539, allocations: 37.7 kB / 0.5624 GB, free: 14.97 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.154, allocations: 322.8 kB / 0.5627 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.1541, allocations: 39.98 kB / 0.5628 GB, free: 14.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.1542, allocations: 89.53 kB / 0.5629 GB, free: 14.51 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.1545, allocations: 127.3 kB / 0.563 GB, free: 14.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-07/0.1545, allocations: 0 / 0.563 GB, free: 14.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003867/0.1548, allocations: 210.2 kB / 0.5632 GB, free: 14.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.1549, allocations: 7.938 kB / 0.5632 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1549, allocations: 4 kB / 0.5632 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.155, allocations: 44.89 kB / 0.5632 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.1552, allocations: 31.98 kB / 0.5633 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.1569, allocations: 1.737 MB / 0.565 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.376e-05/0.1569, allocations: 4 kB / 0.565 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.1569, allocations: 8 kB / 0.565 GB, free: 12.18 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.0001253/0.1571, allocations: 136.1 kB / 0.5651 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.1571, allocations: 19.84 kB / 0.5651 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.205e-05/0.1572, allocations: 25.17 kB / 0.5651 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1572, allocations: 3.938 kB / 0.5651 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1572, allocations: 0 / 0.5651 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1572, allocations: 4 kB / 0.5651 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007909/0.158, allocations: 0.5467 MB / 0.5657 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.158, allocations: 192 / 0.5657 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001663/0.1581, allocations: 35.98 kB / 0.5657 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.1582, allocations: 40.77 kB / 0.5658 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.1582, allocations: 0 / 0.5658 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.1595, allocations: 1.477 MB / 0.5672 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1595, allocations: 0 / 0.5672 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005091/0.16, allocations: 348.8 kB / 0.5675 GB, free: 9.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.074e-05/0.1601, allocations: 92.98 kB / 0.5676 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.1601, allocations: 0 / 0.5676 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.212e-05/0.1602, allocations: 8 kB / 0.5676 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.1602, allocations: 28.11 kB / 0.5677 GB, free: 9.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.1602, allocations: 7.984 kB / 0.5677 GB, free: 9.168 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.934e-05/0.1603, allocations: 105.8 kB / 0.5678 GB, free: 9.066 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1603, allocations: 0 / 0.5678 GB, free: 9.066 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003326/0.1607, allocations: 44 kB / 0.5678 GB, free: 9.023 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.000119/0.1608, allocations: 91.36 kB / 0.5679 GB, free: 8.926 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005268/0.1613, allocations: 266.6 kB / 0.5681 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1613, allocations: 0 / 0.5681 GB, free: 8.652 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.1616, allocations: 190.6 kB / 0.5683 GB, free: 8.453 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003237/0.1619, allocations: 19.94 kB / 0.5683 GB, free: 8.434 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008208/0.1627, allocations: 478.3 kB / 0.5688 GB, free: 7.934 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.1631, allocations: 0.7166 MB / 0.5695 GB, free: 7.188 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.1631, allocations: 23.38 kB / 0.5695 GB, free: 7.164 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1631, allocations: 0 / 0.5695 GB, free: 7.164 MB / 430.1 MB Notification: Performance of Templates: time 0.004686/0.1678, allocations: 2.463 MB / 0.5719 GB, free: 4.707 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 8.087078878015745]