Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.0017/0.0017, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002038/0.002038, allocations: 206.8 kB / 23.72 MB, free: 4.391 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.537/1.537, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2326/0.2326, allocations: 44.95 MB / 358.8 MB, free: 6.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5004,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002116/0.002116, allocations: 67.89 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3475, allocations: 65.47 MB / 0.5574 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.003978/0.3514, allocations: 2.466 MB / 0.5598 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3529, allocations: 0.7089 MB / 0.5605 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.353, allocations: 7.938 kB / 0.5605 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.3532, allocations: 43.52 kB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.3533, allocations: 91.19 kB / 0.5607 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003155/0.3537, allocations: 103.8 kB / 0.5608 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.3541, allocations: 330.6 kB / 0.5611 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.3542, allocations: 66.05 kB / 0.5611 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002464/0.3545, allocations: 131.5 kB / 0.5613 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.3546, allocations: 119.3 kB / 0.5614 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.717e-05/0.3547, allocations: 20 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.335e-05/0.3548, allocations: 35.98 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.3548, allocations: 55.77 kB / 0.5615 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001196/0.3549, allocations: 119.4 kB / 0.5616 GB, free: 3.188 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003859/0.3553, allocations: 313 kB / 0.5619 GB, free: 2.887 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3553, allocations: 3.984 kB / 0.5619 GB, free: 2.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3553, allocations: 4 kB / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.3553, allocations: 0 / 0.5619 GB, free: 2.879 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009358/0.3563, allocations: 0.5206 MB / 0.5624 GB, free: 2.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3563, allocations: 12.03 kB / 0.5624 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.3566, allocations: 52.72 kB / 0.5625 GB, free: 2.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.357, allocations: 218 kB / 0.5627 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.087e-05/0.357, allocations: 16.88 kB / 0.5627 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.357, allocations: 32.33 kB / 0.5627 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005058/0.3575, allocations: 277.4 kB / 0.563 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.3576, allocations: 3.953 kB / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.3576, allocations: 16 kB / 0.563 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.3576, allocations: 12 kB / 0.563 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.358, allocations: 187.7 kB / 0.5632 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.3598, allocations: 1.145 MB / 0.5643 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/0.3602, allocations: 242.4 kB / 0.5646 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.3604, allocations: 91.39 kB / 0.5647 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3604, allocations: 4 kB / 0.5647 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.3605, allocations: 42.5 kB / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.643e-06/0.3605, allocations: 0 / 0.5647 GB, free: 15.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=32): time 0.002554/0.363, allocations: 1.208 MB / 0.5659 GB, free: 14.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.583e-05/0.3631, allocations: 136.5 kB / 0.566 GB, free: 14.33 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3634, allocations: 233 kB / 0.5662 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.3634, allocations: 33.7 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.3635, allocations: 176.5 kB / 0.5664 GB, free: 13.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.3636, allocations: 123 kB / 0.5665 GB, free: 13.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3638, allocations: 70.09 kB / 0.5666 GB, free: 13.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3639, allocations: 346.7 kB / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.3642, allocations: 100.8 kB / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.3645, allocations: 237.4 kB / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.3652, allocations: 370.3 kB / 0.5676 GB, free: 12.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3653, allocations: 8 kB / 0.5676 GB, free: 12.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008332/0.3661, allocations: 401.8 kB / 0.568 GB, free: 12.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.3661, allocations: 4 kB / 0.568 GB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.3661, allocations: 8 kB / 0.568 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.875e-05/0.3662, allocations: 4 kB / 0.568 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/0.3666, allocations: 103.8 kB / 0.5681 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.192e-05/0.3666, allocations: 11.98 kB / 0.5681 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002185/0.3668, allocations: 27.86 kB / 0.5682 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/0.3669, allocations: 20 kB / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001781/0.367, allocations: 145.8 kB / 0.5683 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3672, allocations: 35.75 kB / 0.5684 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-05/0.3672, allocations: 33.94 kB / 0.5684 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3672, allocations: 4 kB / 0.5684 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.3672, allocations: 7.984 kB / 0.5684 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3673, allocations: 3.984 kB / 0.5684 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.3688, allocations: 0.8844 MB / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3688, allocations: 0 / 0.5693 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.3692, allocations: 79.89 kB / 0.5693 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.3692, allocations: 0 / 0.5693 GB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.3692, allocations: 11.98 kB / 0.5694 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.3692, allocations: 4 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3692, allocations: 4.016 kB / 0.5694 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.3703, allocations: 0.7384 MB / 0.5701 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.3703, allocations: 23.81 kB / 0.5701 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.06e-05/0.3703, allocations: 8.062 kB / 0.5701 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.3706, allocations: 20.27 kB / 0.5701 GB, free: 9.855 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/0.3707, allocations: 31.89 kB / 0.5702 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.3707, allocations: 12 kB / 0.5702 GB, free: 9.812 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001475/0.3709, allocations: 172.3 kB / 0.5703 GB, free: 9.645 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3709, allocations: 0 / 0.5703 GB, free: 9.645 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004816/0.3714, allocations: 64 kB / 0.5704 GB, free: 9.582 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.3715, allocations: 115.4 kB / 0.5705 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000708/0.3722, allocations: 267.6 kB / 0.5708 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3722, allocations: 0 / 0.5708 GB, free: 9.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003001/0.3725, allocations: 132.7 kB / 0.5709 GB, free: 9.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006416/0.3731, allocations: 40.48 kB / 0.5709 GB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.3746, allocations: 0.8691 MB / 0.5718 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.3748, allocations: 164.1 kB / 0.5719 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001311/0.3749, allocations: 34.95 kB / 0.572 GB, free: 7.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.375, allocations: 31.42 kB / 0.572 GB, free: 7.867 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.375, allocations: 4 kB / 0.572 GB, free: 7.863 MB / 414.1 MB Notification: Performance of Templates: time 0.006908/0.3819, allocations: 2.705 MB / 0.5746 GB, free: 5.195 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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: 5.339923178777099]