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.001585/0.001585, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001816/0.001816, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9825/0.9825, allocations: 177.1 MB / 205 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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.2527/0.2527, allocations: 32.81 MB / 294.3 MB, free: 1.227 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.624e-06/1.624e-06, allocations: 0 / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.856e-05, allocations: 2.312 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002576/0.002604, allocations: 1.965 MB / 378 MB, free: 2.703 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008382/0.003442, allocations: 0.5492 MB / 378.5 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.003525, allocations: 3.938 kB / 378.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.003653, allocations: 23.78 kB / 378.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.267e-05/0.003735, allocations: 43.58 kB / 378.6 MB, free: 2.078 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.003964, allocations: 43.88 kB / 378.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.004124, allocations: 159.2 kB / 378.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.004261, allocations: 41.78 kB / 378.8 MB, free: 1.836 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.004443, allocations: 99.78 kB / 378.9 MB, free: 1.738 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.9e-05/0.004532, allocations: 47.88 kB / 379 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.177e-05/0.004553, allocations: 12 kB / 379 MB, free: 1.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.192e-05/0.004605, allocations: 12 kB / 379 MB, free: 1.668 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.028e-05/0.004626, allocations: 27.86 kB / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.53e-05/0.004671, allocations: 51.89 kB / 379.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.004862, allocations: 107.6 kB / 379.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.004865, allocations: 0 / 379.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.004866, allocations: 0 / 379.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.004873, allocations: 0 / 379.2 MB, free: 1.484 MB / 346.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.0004498/0.005323, allocations: 475.9 kB / 379.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.005364, allocations: 12.03 kB / 379.6 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.005495, allocations: 32.84 kB / 379.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.005691, allocations: 148.4 kB / 379.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.005705, allocations: 12.38 kB / 379.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.005736, allocations: 16.36 kB / 379.9 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001746/0.00591, allocations: 110.9 kB / 380 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.005921, allocations: 192 / 380 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.005938, allocations: 12.12 kB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.005946, allocations: 0 / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.967e-05/0.006025, allocations: 51.95 kB / 380 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/0.006511, allocations: 435.2 kB / 380.4 MB, free: 104 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.006655, allocations: 87.03 kB / 380.5 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.64e-05/0.006722, allocations: 35.67 kB / 380.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.006739, allocations: 4 kB / 380.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.006761, allocations: 41.33 kB / 380.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.006763, allocations: 0 / 380.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.000893/0.007656, allocations: 0.5797 MB / 381.2 MB, free: 15.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.007685, allocations: 55.34 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.011e-05/0.007775, allocations: 185 kB / 381.4 MB, free: 15.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.00779, allocations: 33.7 kB / 381.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.157e-05/0.007851, allocations: 159.2 kB / 381.6 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/0.007887, allocations: 63.44 kB / 381.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.603e-05/0.007933, allocations: 51.25 kB / 381.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.008043, allocations: 0.4923 MB / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.995e-05/0.008083, allocations: 23.92 kB / 382.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.172e-05/0.008145, allocations: 73.91 kB / 382.3 MB, free: 14.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.008258, allocations: 98.67 kB / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.008259, allocations: 0 / 382.4 MB, free: 13.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002145/0.008474, allocations: 169.1 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.008489, allocations: 8 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.008493, allocations: 3.938 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001457/0.008639, allocations: 39.7 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.00875, allocations: 35.97 kB / 382.7 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.009843, allocations: 2.126 MB / 384.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.545e-05/0.009889, allocations: 8 kB / 384.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.009898, allocations: 4 kB / 384.8 MB, free: 11.44 MB / 362.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 9.21e-05/0.00999, allocations: 176.5 kB / 385 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.01002, allocations: 15.91 kB / 385 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.01004, allocations: 20.78 kB / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.01004, allocations: 0 / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.01005, allocations: 7.984 kB / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.01005, allocations: 0 / 385 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.01049, allocations: 494.3 kB / 385.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01049, allocations: 0 / 385.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.367e-05/0.01058, allocations: 39.95 kB / 385.5 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.068e-05/0.01067, allocations: 31.67 kB / 385.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.01067, allocations: 3.984 kB / 385.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000757/0.01143, allocations: 1.803 MB / 387.4 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01143, allocations: 0 / 387.4 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.0117, allocations: 350.9 kB / 387.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.01171, allocations: 11.89 kB / 387.7 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.01172, allocations: 4 kB / 387.7 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.571e-05/0.01176, allocations: 7.984 kB / 387.7 MB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.0118, allocations: 11.98 kB / 387.8 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.01181, allocations: 11.98 kB / 387.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.643e-05/0.01186, allocations: 135.2 kB / 387.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01186, allocations: 0 / 387.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.01208, allocations: 40 kB / 387.9 MB, free: 8.086 MB / 362.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.115e-05/0.01217, allocations: 103.2 kB / 388 MB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.01251, allocations: 285.3 kB / 388.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.01251, allocations: 0 / 388.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.01265, allocations: 244.1 kB / 388.6 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002354/0.01289, allocations: 28.19 kB / 388.6 MB, free: 7.387 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007366/0.01363, allocations: 378.7 kB / 389 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.169e-05/0.01368, allocations: 76.22 kB / 389 MB, free: 6.883 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.734e-05/0.01372, allocations: 13.48 kB / 389 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.358e-05/0.01375, allocations: 12.5 kB / 389 MB, free: 6.859 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01375, allocations: 0 / 389 MB, free: 6.859 MB / 362.7 MB Notification: Performance of Templates: time 0.003632/0.01738, allocations: 1.622 MB / 390.7 MB, free: 5.258 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.2020571432076395]