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.001029/0.001029, allocations: 82.64 kB / 21.44 MB, free: 3.059 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.00112/0.00112, allocations: 168 kB / 24.84 MB, free: 8.91 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.8937/0.8937, allocations: 158.6 MB / 186.7 MB, free: 2.797 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.1299/0.1299, allocations: 32.38 MB / 271.5 MB, free: 14.53 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.944e-06/1.944e-06, allocations: 3.984 kB / 348.9 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.585e-05/1.779e-05, allocations: 6.25 kB / 348.9 MB, free: 9.188 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001857/0.001875, allocations: 1.94 MB / 350.8 MB, free: 7.242 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005556/0.00243, allocations: 0.5229 MB / 351.4 MB, free: 6.711 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.468e-05/0.002515, allocations: 8 kB / 351.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.002627, allocations: 15.8 kB / 351.4 MB, free: 6.688 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.07e-05/0.002698, allocations: 47.58 kB / 351.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.002853, allocations: 43.81 kB / 351.5 MB, free: 6.598 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.002972, allocations: 155.2 kB / 351.6 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.003079, allocations: 37.84 kB / 351.7 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.003181, allocations: 87.84 kB / 351.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.034e-05/0.003262, allocations: 47.81 kB / 351.8 MB, free: 6.273 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.003283, allocations: 12 kB / 351.8 MB, free: 6.262 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.003298, allocations: 16 kB / 351.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.304e-05/0.003321, allocations: 23.92 kB / 351.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.424e-05/0.003355, allocations: 51.84 kB / 351.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.003476, allocations: 99.64 kB / 352 MB, free: 6.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.003478, allocations: 0 / 352 MB, free: 6.074 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.003478, allocations: 0 / 352 MB, free: 6.074 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.003483, allocations: 0 / 352 MB, free: 6.074 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.0003297/0.003813, allocations: 467.9 kB / 352.4 MB, free: 5.582 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.003843, allocations: 8.031 kB / 352.5 MB, free: 5.574 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.003879, allocations: 28.84 kB / 352.5 MB, free: 5.547 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001202/0.003999, allocations: 148.4 kB / 352.6 MB, free: 5.375 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.004012, allocations: 8.375 kB / 352.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.004035, allocations: 16.38 kB / 352.7 MB, free: 5.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.004148, allocations: 102.9 kB / 352.8 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.004157, allocations: 192 / 352.8 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.004168, allocations: 8.125 kB / 352.8 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.004173, allocations: 4 kB / 352.8 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.406e-05/0.004217, allocations: 39.94 kB / 352.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003244/0.004541, allocations: 407.7 kB / 353.2 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.004643, allocations: 90.95 kB / 353.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.68e-05/0.004679, allocations: 31.67 kB / 353.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.004691, allocations: 0 / 353.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.004708, allocations: 49.31 kB / 353.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 6.71e-07/0.004708, allocations: 0 / 353.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006077/0.005316, allocations: 0.5221 MB / 353.9 MB, free: 3.984 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.96e-05/0.005336, allocations: 59.41 kB / 353.9 MB, free: 3.914 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.226e-05/0.005388, allocations: 184.9 kB / 354.1 MB, free: 3.719 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-06/0.005396, allocations: 29.7 kB / 354.2 MB, free: 3.684 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.005434, allocations: 171.1 kB / 354.3 MB, free: 3.512 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.005458, allocations: 67.41 kB / 354.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.005495, allocations: 39.36 kB / 354.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.278e-05/0.005548, allocations: 0.4923 MB / 354.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.181e-05/0.005569, allocations: 19.92 kB / 354.9 MB, free: 2.875 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.88e-05/0.005608, allocations: 62.7 kB / 355 MB, free: 2.797 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.008e-05/0.005688, allocations: 94.66 kB / 355.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.00569, allocations: 8 kB / 355.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001548/0.005845, allocations: 161 kB / 355.3 MB, free: 2.512 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.005856, allocations: 4 kB / 355.3 MB, free: 2.508 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.005861, allocations: 4 kB / 355.3 MB, free: 2.504 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001057/0.005967, allocations: 39.64 kB / 355.3 MB, free: 2.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.292e-05/0.00606, allocations: 31.98 kB / 355.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006774/0.006737, allocations: 2.087 MB / 357.4 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.417e-05/0.006771, allocations: 12.03 kB / 357.4 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.00678, allocations: 11.98 kB / 357.4 MB, free: 216 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.368e-05/0.006834, allocations: 160.6 kB / 357.6 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.006857, allocations: 19.89 kB / 357.6 MB, free: 24 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.006895, allocations: 20.89 kB / 357.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.006896, allocations: 0 / 357.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.006898, allocations: 0 / 357.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.006903, allocations: 4 kB / 357.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.007292, allocations: 459.3 kB / 358.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.007293, allocations: 0 / 358.1 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.814e-05/0.007381, allocations: 39.91 kB / 358.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.99e-05/0.007451, allocations: 31.7 kB / 358.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.007459, allocations: 3.938 kB / 358.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007614/0.00822, allocations: 1.776 MB / 359.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.008222, allocations: 144 / 359.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002598/0.008482, allocations: 323.4 kB / 360.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.211e-05/0.008494, allocations: 15.89 kB / 360.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.829e-06/0.008503, allocations: 4.062 kB / 360.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.597e-05/0.008549, allocations: 8 kB / 360.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.008599, allocations: 23.84 kB / 360.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.008607, allocations: 4 kB / 360.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.122e-05/0.008668, allocations: 135.2 kB / 360.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-08/0.008668, allocations: 0 / 360.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002078/0.008876, allocations: 44 kB / 360.5 MB, free: 12.96 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 8.72e-05/0.008963, allocations: 95.19 kB / 360.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002948/0.009258, allocations: 292.2 kB / 360.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.009259, allocations: 0 / 360.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.009404, allocations: 229.4 kB / 361.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.00964, allocations: 28.09 kB / 361.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006706/0.01031, allocations: 381.5 kB / 361.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.433e-05/0.01036, allocations: 76.06 kB / 361.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.349e-05/0.0104, allocations: 9.484 kB / 361.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/0.01048, allocations: 90.19 kB / 361.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01048, allocations: 0 / 361.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of Templates: time 0.003791/0.01427, allocations: 1.788 MB / 363.5 MB, free: 9.922 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: 2.9735282831825316]