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.001866/0.001866, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001994/0.001994, allocations: 165.3 kB / 24.27 MB, free: 156 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 1.578/1.578, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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.3523/0.3523, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 179] 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.644e-06/1.644e-06, allocations: 0 / 375.2 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.112e-05/3.276e-05, allocations: 2.312 kB / 375.2 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003654/0.003687, allocations: 1.933 MB / 377.2 MB, free: 3.051 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.00532, allocations: 0.5493 MB / 377.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.005449, allocations: 7.938 kB / 377.7 MB, free: 2.488 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.005619, allocations: 15.8 kB / 377.7 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.005743, allocations: 43.56 kB / 377.8 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.006051, allocations: 43.94 kB / 377.8 MB, free: 2.387 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000272/0.006323, allocations: 155.1 kB / 378 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001849/0.006508, allocations: 49.77 kB / 378 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.006788, allocations: 95.78 kB / 378.1 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.006935, allocations: 51.88 kB / 378.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.578e-05/0.006971, allocations: 12 kB / 378.2 MB, free: 2.027 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.229e-05/0.007043, allocations: 12 kB / 378.2 MB, free: 2.016 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.086e-05/0.007084, allocations: 31.84 kB / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.007162, allocations: 43.92 kB / 378.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.007525, allocations: 163.4 kB / 378.4 MB, free: 1.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.007532, allocations: 3.984 kB / 378.4 MB, free: 1.777 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.007534, allocations: 0 / 378.4 MB, free: 1.777 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.007542, allocations: 0 / 378.4 MB, free: 1.777 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.0008437/0.008385, allocations: 475.6 kB / 378.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.008427, allocations: 12.03 kB / 378.9 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.008613, allocations: 32.84 kB / 378.9 MB, free: 1.234 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.008873, allocations: 160 kB / 379.1 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.008891, allocations: 8.375 kB / 379.1 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.509e-05/0.008926, allocations: 12.38 kB / 379.1 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.009223, allocations: 130.2 kB / 379.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.00924, allocations: 192 / 379.2 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.009261, allocations: 8.125 kB / 379.3 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.009269, allocations: 4 kB / 379.3 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.009459, allocations: 79.95 kB / 379.3 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008234/0.01028, allocations: 455.2 kB / 379.8 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002593/0.01054, allocations: 115 kB / 379.9 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.01066, allocations: 51.67 kB / 379.9 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.01068, allocations: 4 kB / 379.9 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.01073, allocations: 45.31 kB / 380 MB, free: 96 kB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.143e-06/0.01073, allocations: 4 kB / 380 MB, free: 92 kB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001632/0.01236, allocations: 0.6751 MB / 380.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.01242, allocations: 55.34 kB / 380.7 MB, free: 15.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.0126, allocations: 193.9 kB / 380.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.01263, allocations: 29.7 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.01276, allocations: 167.1 kB / 381.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.01283, allocations: 71.42 kB / 381.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.969e-05/0.01292, allocations: 55.3 kB / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000289/0.01321, allocations: 0.5001 MB / 381.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.941e-05/0.01331, allocations: 39.98 kB / 381.8 MB, free: 14.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.01345, allocations: 86.72 kB / 381.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.01371, allocations: 142.7 kB / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01371, allocations: 0 / 382 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004438/0.01416, allocations: 221 kB / 382.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.01418, allocations: 7.984 kB / 382.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.01418, allocations: 0 / 382.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002029/0.01438, allocations: 47.7 kB / 382.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.01456, allocations: 35.97 kB / 382.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/0.0167, allocations: 2.223 MB / 384.5 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.01677, allocations: 8 kB / 384.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.01679, allocations: 12.02 kB / 384.5 MB, free: 11.25 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 0.0003204/0.01711, allocations: 176.5 kB / 384.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.01716, allocations: 23.91 kB / 384.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.01721, allocations: 12.78 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.01721, allocations: 4 kB / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.01722, allocations: 0 / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01722, allocations: 0 / 384.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009078/0.01813, allocations: 0.5589 MB / 385.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01813, allocations: 0 / 385.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.01831, allocations: 39.92 kB / 385.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001385/0.01845, allocations: 35.7 kB / 385.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.01846, allocations: 7.984 kB / 385.4 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.0201, allocations: 1.873 MB / 387.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.0201, allocations: 0 / 387.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.02069, allocations: 416.9 kB / 387.7 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.08e-05/0.02071, allocations: 11.89 kB / 387.7 MB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.02073, allocations: 8 kB / 387.7 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.048e-05/0.02082, allocations: 0 / 387.7 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.02088, allocations: 19.97 kB / 387.7 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.02089, allocations: 4 kB / 387.7 MB, free: 7.859 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001069/0.021, allocations: 146.5 kB / 387.9 MB, free: 7.719 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.021, allocations: 4.062 kB / 387.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000332/0.02133, allocations: 36 kB / 387.9 MB, free: 7.68 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 0.0001512/0.02148, allocations: 99.19 kB / 388 MB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006353/0.02212, allocations: 337.1 kB / 388.3 MB, free: 7.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.02212, allocations: 0 / 388.3 MB, free: 7.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000351/0.02247, allocations: 269.4 kB / 388.6 MB, free: 6.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.02283, allocations: 25.48 kB / 388.6 MB, free: 6.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008498/0.02368, allocations: 398.8 kB / 389 MB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.02382, allocations: 111.8 kB / 389.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.826e-05/0.02386, allocations: 9.484 kB / 389.1 MB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.02391, allocations: 16.5 kB / 389.1 MB, free: 6.328 MB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.02391, allocations: 0 / 389.1 MB, free: 6.328 MB / 362.7 MB Notification: Performance of Templates: time 0.005757/0.02966, allocations: 1.615 MB / 390.8 MB, free: 4.73 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","/var/lib/jenkins/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: 5.034902238985524]