Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001489/0.001489, allocations: 91.33 kB / 20.42 MB, free: 4.141 MB / 18.57 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.001574/0.001574, allocations: 165 kB / 23.8 MB, free: 0.7734 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9021/0.9021, allocations: 158.6 MB / 185.7 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1264/0.1264, allocations: 32.37 MB / 270.4 MB, free: 14.69 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 347.6 MB, free: 9.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.45e-05/1.559e-05, allocations: 5.406 kB / 347.7 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001836/0.001852, allocations: 1.957 MB / 349.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006179/0.002469, allocations: 0.5229 MB / 350.1 MB, free: 6.945 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.331e-05/0.002543, allocations: 4 kB / 350.1 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.105e-05/0.002634, allocations: 23.67 kB / 350.2 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.853e-05/0.002692, allocations: 39.69 kB / 350.2 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001361/0.002828, allocations: 47.78 kB / 350.2 MB, free: 6.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.002943, allocations: 151.2 kB / 350.4 MB, free: 6.684 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.799e-05/0.003041, allocations: 41.84 kB / 350.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.237e-05/0.003133, allocations: 91.78 kB / 350.5 MB, free: 6.551 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.795e-05/0.003201, allocations: 39.89 kB / 350.6 MB, free: 6.512 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.00322, allocations: 15.94 kB / 350.6 MB, free: 6.496 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.003235, allocations: 12 kB / 350.6 MB, free: 6.484 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.175e-05/0.003257, allocations: 27.91 kB / 350.6 MB, free: 6.457 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/0.003293, allocations: 47.91 kB / 350.7 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.003415, allocations: 103.6 kB / 350.8 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.003417, allocations: 0 / 350.8 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.41e-07/0.003417, allocations: 4 kB / 350.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.003421, allocations: 0 / 350.8 MB, free: 6.305 MB / 282.7 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.0003163/0.003738, allocations: 464 kB / 351.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.003777, allocations: 8.031 kB / 351.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.003819, allocations: 28.84 kB / 351.3 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.003939, allocations: 151.2 kB / 351.4 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.003949, allocations: 8.375 kB / 351.4 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.003973, allocations: 12.38 kB / 351.4 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.00411, allocations: 118.9 kB / 351.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.004119, allocations: 4.188 kB / 351.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.00413, allocations: 8.125 kB / 351.6 MB, free: 5.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.004137, allocations: 4 kB / 351.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.663e-05/0.004204, allocations: 39.97 kB / 351.6 MB, free: 5.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003672/0.004571, allocations: 423.2 kB / 352 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.004684, allocations: 90.98 kB / 352.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.158e-05/0.004736, allocations: 43.66 kB / 352.1 MB, free: 4.812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.004752, allocations: 4 kB / 352.1 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.004765, allocations: 41.33 kB / 352.2 MB, free: 4.758 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.183e-06/0.004767, allocations: 0 / 352.2 MB, free: 4.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007003/0.005467, allocations: 0.5785 MB / 352.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.762e-05/0.005485, allocations: 55.34 kB / 352.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/0.005546, allocations: 173.9 kB / 353 MB, free: 3.863 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.005555, allocations: 33.7 kB / 353 MB, free: 3.824 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.143e-05/0.005596, allocations: 167.1 kB / 353.2 MB, free: 3.656 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.583e-05/0.005622, allocations: 75.36 kB / 353.3 MB, free: 3.582 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.005661, allocations: 47.3 kB / 353.3 MB, free: 3.527 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.00572, allocations: 0.4923 MB / 353.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.005754, allocations: 19.98 kB / 353.8 MB, free: 3.004 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.208e-05/0.005806, allocations: 70.73 kB / 353.9 MB, free: 2.918 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.875e-05/0.005895, allocations: 98.67 kB / 354 MB, free: 2.805 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.005896, allocations: 0 / 354 MB, free: 2.805 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001828/0.006079, allocations: 169 kB / 354.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.00609, allocations: 8 kB / 354.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.006094, allocations: 7.969 kB / 354.2 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.006217, allocations: 39.66 kB / 354.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.566e-05/0.006312, allocations: 31.98 kB / 354.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007226/0.007035, allocations: 2.122 MB / 356.4 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.612e-05/0.007071, allocations: 8.031 kB / 356.4 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.007079, allocations: 8 kB / 356.4 MB, free: 292 kB / 282.7 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 5.395e-05/0.007133, allocations: 168.5 kB / 356.5 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.007156, allocations: 15.95 kB / 356.5 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.691e-05/0.007173, allocations: 16.78 kB / 356.6 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.007174, allocations: 0 / 356.6 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.007178, allocations: 4 kB / 356.6 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.007182, allocations: 0 / 356.6 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004295/0.007611, allocations: 0.4948 MB / 357.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.007613, allocations: 0 / 357.1 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.495e-05/0.007708, allocations: 35.92 kB / 357.1 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-05/0.007786, allocations: 35.69 kB / 357.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.007794, allocations: 4.188 kB / 357.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007864/0.00858, allocations: 1.803 MB / 358.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.008581, allocations: 0 / 358.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.008861, allocations: 343.4 kB / 359.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.19e-05/0.008873, allocations: 11.89 kB / 359.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.008884, allocations: 8 kB / 359.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.202e-05/0.008926, allocations: 0 / 359.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.008966, allocations: 15.97 kB / 359.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.008972, allocations: 4 kB / 359.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.53e-05/0.009027, allocations: 141.7 kB / 359.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009027, allocations: 4 kB / 359.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.009237, allocations: 36 kB / 359.5 MB, free: 12.95 MB / 298.7 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 9.186e-05/0.009328, allocations: 99.19 kB / 359.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.009695, allocations: 296.2 kB / 359.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.009697, allocations: 0 / 359.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.009855, allocations: 241.6 kB / 360.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.01007, allocations: 27.86 kB / 360.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007429/0.01082, allocations: 386 kB / 360.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.403e-05/0.01087, allocations: 76.06 kB / 360.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.207e-05/0.0109, allocations: 13.48 kB / 360.6 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.15e-05/0.01093, allocations: 20.5 kB / 360.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of SimCode: time 9.11e-07/0.01093, allocations: 0 / 360.6 MB, free: 11.71 MB / 298.7 MB Notification: Performance of Templates: time 0.003648/0.01458, allocations: 1.626 MB / 362.3 MB, free: 10.1 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1274405433796346]