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.001975/0.001975, allocations: 117.1 kB / 20.44 MB, free: 1.316 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.002307/0.002307, allocations: 215.2 kB / 23.74 MB, free: 4.543 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: 8.016 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.2514/0.2514, allocations: 46.92 MB / 360.8 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 179] 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.002283/0.002283, allocations: 63.91 kB / 0.4966 GB, free: 7.414 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.427, allocations: 66.03 MB / 0.5611 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004524/0.4315, allocations: 1.938 MB / 0.563 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.433, allocations: 0.5737 MB / 0.5636 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.4331, allocations: 4 kB / 0.5636 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.4333, allocations: 27.72 kB / 0.5636 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001794/0.4335, allocations: 39.64 kB / 0.5636 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.4338, allocations: 51.88 kB / 0.5637 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003046/0.4341, allocations: 151.2 kB / 0.5638 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.4343, allocations: 45.84 kB / 0.5639 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002237/0.4345, allocations: 67.77 kB / 0.5639 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001562/0.4347, allocations: 67.7 kB / 0.564 GB, free: 1.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.4347, allocations: 12 kB / 0.564 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.894e-05/0.4348, allocations: 12 kB / 0.564 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.4348, allocations: 39.83 kB / 0.5641 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.183e-05/0.4349, allocations: 67.67 kB / 0.5641 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.4353, allocations: 149.8 kB / 0.5643 GB, free: 1.176 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.4353, allocations: 0 / 0.5643 GB, free: 1.176 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4353, allocations: 0 / 0.5643 GB, free: 1.176 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.4353, allocations: 4 kB / 0.5643 GB, free: 1.172 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.000738/0.436, allocations: 368 kB / 0.5646 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4361, allocations: 12.03 kB / 0.5646 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.4363, allocations: 24.83 kB / 0.5647 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.4366, allocations: 146.3 kB / 0.5648 GB, free: 0.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.4366, allocations: 12.38 kB / 0.5648 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.8e-05/0.4366, allocations: 16.33 kB / 0.5648 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.4369, allocations: 134.2 kB / 0.565 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.437, allocations: 4 kB / 0.565 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.437, allocations: 8 kB / 0.565 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.437, allocations: 4 kB / 0.565 GB, free: 412 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.4372, allocations: 83.94 kB / 0.565 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008327/0.438, allocations: 427.5 kB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.4383, allocations: 126.4 kB / 0.5656 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.4384, allocations: 52.83 kB / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.4384, allocations: 4 kB / 0.5656 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.4385, allocations: 30.56 kB / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.4385, allocations: 0 / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001613/0.4401, allocations: 0.6669 MB / 0.5663 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4401, allocations: 51.41 kB / 0.5664 GB, free: 14.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.4403, allocations: 143.7 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.4403, allocations: 29.7 kB / 0.5665 GB, free: 14.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.4404, allocations: 120.3 kB / 0.5666 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.274e-05/0.4405, allocations: 75.38 kB / 0.5667 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-05/0.4406, allocations: 37.7 kB / 0.5667 GB, free: 14.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.4407, allocations: 322.8 kB / 0.5671 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.4408, allocations: 43.98 kB / 0.5671 GB, free: 14.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/0.441, allocations: 75.34 kB / 0.5672 GB, free: 13.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.4412, allocations: 139.3 kB / 0.5673 GB, free: 13.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4412, allocations: 0 / 0.5673 GB, free: 13.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004193/0.4417, allocations: 206.2 kB / 0.5675 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.4417, allocations: 15.92 kB / 0.5675 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.4417, allocations: 0 / 0.5675 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001862/0.4419, allocations: 40.88 kB / 0.5676 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.4421, allocations: 43.91 kB / 0.5676 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.4438, allocations: 1.629 MB / 0.5692 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-05/0.4439, allocations: 4.031 kB / 0.5692 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.4439, allocations: 8 kB / 0.5692 GB, free: 11.75 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.0001324/0.444, allocations: 125.8 kB / 0.5693 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.087e-05/0.4441, allocations: 11.95 kB / 0.5693 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.511e-05/0.4441, allocations: 25.17 kB / 0.5694 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.4441, allocations: 7.938 kB / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4441, allocations: 256 / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.4442, allocations: 0 / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008931/0.445, allocations: 0.5262 MB / 0.5699 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.445, allocations: 32 / 0.5699 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.4452, allocations: 35.98 kB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.4453, allocations: 32.78 kB / 0.5699 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.4454, allocations: 7.984 kB / 0.5699 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.4468, allocations: 1.37 MB / 0.5713 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4468, allocations: 0 / 0.5713 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005651/0.4474, allocations: 357.5 kB / 0.5716 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.751e-05/0.4474, allocations: 11.94 kB / 0.5716 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.4474, allocations: 7.984 kB / 0.5716 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.661e-05/0.4475, allocations: 4 kB / 0.5716 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.199e-05/0.4476, allocations: 19.91 kB / 0.5717 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.4476, allocations: 4 kB / 0.5717 GB, free: 9.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.343e-05/0.4477, allocations: 111.3 kB / 0.5718 GB, free: 8.906 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4477, allocations: 64 / 0.5718 GB, free: 8.906 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.448, allocations: 40 kB / 0.5718 GB, free: 8.867 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.0001382/0.4482, allocations: 99.19 kB / 0.5719 GB, free: 8.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005786/0.4488, allocations: 246.8 kB / 0.5721 GB, free: 8.508 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4488, allocations: 7.938 kB / 0.5722 GB, free: 8.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.4491, allocations: 194.6 kB / 0.5723 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.4494, allocations: 21.27 kB / 0.5724 GB, free: 8.281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009589/0.4504, allocations: 461.4 kB / 0.5728 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.4508, allocations: 0.7166 MB / 0.5735 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.682e-05/0.4508, allocations: 17.41 kB / 0.5735 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.246e-05/0.4509, allocations: 15.44 kB / 0.5735 GB, free: 7.02 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4509, allocations: 0 / 0.5735 GB, free: 7.02 MB / 414.1 MB Notification: Performance of Templates: time 0.006122/0.457, allocations: 1.729 MB / 0.5752 GB, free: 5.293 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/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: 5.565837159054354]