Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001619/0.001619, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001856/0.001856, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.526/1.526, allocations: 230.6 MB / 258.3 MB, free: 8 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.2195/0.2195, allocations: 44.92 MB / 359.6 MB, free: 6.312 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.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.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.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [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.002351/0.002351, allocations: 67.89 kB / 0.4943 GB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3369, allocations: 65.48 MB / 0.5582 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003681/0.3405, allocations: 1.941 MB / 0.5601 GB, free: 5.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001147/0.3417, allocations: 0.5698 MB / 0.5607 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.3418, allocations: 3.938 kB / 0.5607 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.3419, allocations: 23.8 kB / 0.5607 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001192/0.3421, allocations: 39.62 kB / 0.5608 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.3423, allocations: 51.88 kB / 0.5608 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.3425, allocations: 155.2 kB / 0.561 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.3427, allocations: 45.83 kB / 0.561 GB, free: 4.887 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.3429, allocations: 63.78 kB / 0.5611 GB, free: 4.824 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.343, allocations: 67.7 kB / 0.5611 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.343, allocations: 15.98 kB / 0.5611 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.039e-05/0.3431, allocations: 20 kB / 0.5612 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.072e-05/0.3431, allocations: 27.86 kB / 0.5612 GB, free: 4.695 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.322e-05/0.3432, allocations: 63.67 kB / 0.5612 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.3435, allocations: 165.7 kB / 0.5614 GB, free: 4.477 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3435, allocations: 0 / 0.5614 GB, free: 4.477 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3435, allocations: 0 / 0.5614 GB, free: 4.477 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.3435, allocations: 0 / 0.5614 GB, free: 4.477 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006369/0.3441, allocations: 365.7 kB / 0.5617 GB, free: 4.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3441, allocations: 8.031 kB / 0.5618 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.3443, allocations: 24.83 kB / 0.5618 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.3446, allocations: 154.3 kB / 0.5619 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.3446, allocations: 8.375 kB / 0.5619 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.3447, allocations: 16.33 kB / 0.5619 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.3449, allocations: 134.3 kB / 0.5621 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.345, allocations: 0 / 0.5621 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.345, allocations: 8 kB / 0.5621 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.345, allocations: 4 kB / 0.5621 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.3452, allocations: 83.94 kB / 0.5622 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007639/0.346, allocations: 427.4 kB / 0.5626 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.3462, allocations: 122.4 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/0.3463, allocations: 52.84 kB / 0.5627 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.3463, allocations: 0 / 0.5627 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.805e-05/0.3464, allocations: 34.55 kB / 0.5628 GB, free: 2.941 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.022e-06/0.3464, allocations: 0 / 0.5628 GB, free: 2.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001522/0.3479, allocations: 0.6751 MB / 0.5634 GB, free: 2.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.3479, allocations: 51.41 kB / 0.5635 GB, free: 2.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.3481, allocations: 143.2 kB / 0.5636 GB, free: 2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.3481, allocations: 29.7 kB / 0.5636 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.3482, allocations: 112.4 kB / 0.5638 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.3482, allocations: 79.31 kB / 0.5638 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.019e-05/0.3483, allocations: 33.72 kB / 0.5639 GB, free: 1.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3485, allocations: 326.8 kB / 0.5642 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.3486, allocations: 39.98 kB / 0.5642 GB, free: 1.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.3487, allocations: 83.28 kB / 0.5643 GB, free: 1.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002327/0.3489, allocations: 135.3 kB / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3489, allocations: 0 / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000436/0.3494, allocations: 206.3 kB / 0.5646 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3494, allocations: 11.88 kB / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3494, allocations: 0 / 0.5646 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001826/0.3496, allocations: 52.8 kB / 0.5647 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.3498, allocations: 27.98 kB / 0.5647 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.3514, allocations: 1.633 MB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.615e-05/0.3515, allocations: 7.984 kB / 0.5663 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.3515, allocations: 4 kB / 0.5663 GB, free: 15.06 MB / 414.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.0001282/0.3517, allocations: 136 kB / 0.5664 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.3517, allocations: 11.95 kB / 0.5665 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.874e-05/0.3517, allocations: 21.44 kB / 0.5665 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.3517, allocations: 7.938 kB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.3518, allocations: 4 kB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3518, allocations: 3.984 kB / 0.5665 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008257/0.3526, allocations: 0.5184 MB / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3526, allocations: 4.031 kB / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.3528, allocations: 39.91 kB / 0.567 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000127/0.3529, allocations: 28.84 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.3529, allocations: 4 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.3542, allocations: 1.373 MB / 0.5684 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3542, allocations: 0 / 0.5684 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005374/0.3547, allocations: 356.1 kB / 0.5688 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.188e-05/0.3547, allocations: 11.94 kB / 0.5688 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.3548, allocations: 4 kB / 0.5688 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.817e-05/0.3549, allocations: 4 kB / 0.5688 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.3549, allocations: 27.84 kB / 0.5688 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.3549, allocations: 4 kB / 0.5688 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.49e-05/0.355, allocations: 107.2 kB / 0.5689 GB, free: 12.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.355, allocations: 4.062 kB / 0.5689 GB, free: 12.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003407/0.3554, allocations: 40 kB / 0.5689 GB, free: 12.17 MB / 414.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.0001114/0.3555, allocations: 91.25 kB / 0.569 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005277/0.356, allocations: 258.8 kB / 0.5693 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.356, allocations: 0 / 0.5693 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.3563, allocations: 196.7 kB / 0.5695 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.3566, allocations: 19.98 kB / 0.5695 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.3575, allocations: 485.5 kB / 0.5699 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/0.3579, allocations: 0.7205 MB / 0.5707 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.415e-05/0.3579, allocations: 15.44 kB / 0.5707 GB, free: 10.31 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3579, allocations: 0 / 0.5707 GB, free: 10.31 MB / 414.1 MB Notification: Performance of Templates: time 0.00504/0.363, allocations: 2.463 MB / 0.5731 GB, free: 7.844 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.186889682896435]