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.001072/0.001072, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001124/0.001124, allocations: 172.3 kB / 24.82 MB, free: 8.863 MB / 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.165/1.165, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.3435/0.3435, allocations: 32.8 MB / 294.6 MB, free: 1.145 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 2.174e-06/2.174e-06, allocations: 0 / 376.5 MB, free: 4.375 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.708e-05, allocations: 2.312 kB / 376.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003389/0.003416, allocations: 1.953 MB / 378.4 MB, free: 2.402 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.004424, allocations: 0.5491 MB / 379 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.004544, allocations: 4 kB / 379 MB, free: 1.844 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.004686, allocations: 19.78 kB / 379 MB, free: 1.824 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.004776, allocations: 47.58 kB / 379 MB, free: 1.777 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.005021, allocations: 51.81 kB / 379.1 MB, free: 1.727 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001738/0.005195, allocations: 159.2 kB / 379.2 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.005342, allocations: 41.84 kB / 379.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.005541, allocations: 95.78 kB / 379.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.005646, allocations: 43.89 kB / 379.4 MB, free: 1.391 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.486e-05/0.005671, allocations: 12 kB / 379.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.689e-05/0.005728, allocations: 19.98 kB / 379.4 MB, free: 1.359 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.374e-05/0.005752, allocations: 27.86 kB / 379.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.611e-05/0.005798, allocations: 51.83 kB / 379.5 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.005982, allocations: 99.66 kB / 379.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.005988, allocations: 3.984 kB / 379.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.005989, allocations: 0 / 379.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.005996, allocations: 0 / 379.6 MB, free: 1.18 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.0004599/0.006455, allocations: 475.9 kB / 380.1 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.0065, allocations: 8.031 kB / 380.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.006613, allocations: 36.78 kB / 380.1 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.006773, allocations: 152.4 kB / 380.3 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.006785, allocations: 8.375 kB / 380.3 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.006812, allocations: 16.38 kB / 380.3 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.00695, allocations: 106.9 kB / 380.4 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.006962, allocations: 192 / 380.4 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.006974, allocations: 8.125 kB / 380.4 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.054e-06/0.006981, allocations: 8 kB / 380.4 MB, free: 316 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.252e-05/0.007034, allocations: 35.91 kB / 380.5 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004884/0.007522, allocations: 399.9 kB / 380.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.007657, allocations: 86.95 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.43e-05/0.007701, allocations: 35.66 kB / 381 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.00772, allocations: 0 / 381 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.007749, allocations: 41.39 kB / 381 MB, free: 15.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.213e-06/0.00775, allocations: 0 / 381 MB, free: 15.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007781/0.008528, allocations: 0.5406 MB / 381.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.008565, allocations: 55.41 kB / 381.6 MB, free: 15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.00866, allocations: 185.5 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.008673, allocations: 29.7 kB / 381.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.008742, allocations: 163.1 kB / 382 MB, free: 14.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.008783, allocations: 63.42 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.564e-05/0.008828, allocations: 43.34 kB / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.008974, allocations: 0.4962 MB / 382.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.339e-05/0.008997, allocations: 19.98 kB / 382.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.31e-05/0.00905, allocations: 65.7 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.375e-05/0.009134, allocations: 90.66 kB / 382.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.009135, allocations: 7.938 kB / 382.8 MB, free: 13.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001615/0.009297, allocations: 157 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.009312, allocations: 8 kB / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.009318, allocations: 0 / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/0.009449, allocations: 39.7 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.306e-05/0.009542, allocations: 35.91 kB / 383 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.01066, allocations: 2.091 MB / 385.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.37e-05/0.0107, allocations: 4 kB / 385.1 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.338e-06/0.01071, allocations: 8 kB / 385.1 MB, free: 11.31 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.701e-05/0.0108, allocations: 176.5 kB / 385.3 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.579e-05/0.01083, allocations: 23.89 kB / 385.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.01085, allocations: 12.78 kB / 385.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.01085, allocations: 4 kB / 385.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.01086, allocations: 0 / 385.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.01086, allocations: 0 / 385.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.01125, allocations: 454.9 kB / 385.8 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01126, allocations: 8.031 kB / 385.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.28e-05/0.01135, allocations: 35.91 kB / 385.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.842e-05/0.01143, allocations: 35.66 kB / 385.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.01144, allocations: 3.938 kB / 385.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008392/0.01228, allocations: 1.776 MB / 387.6 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01228, allocations: 4.031 kB / 387.6 MB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002431/0.01252, allocations: 330.9 kB / 387.9 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.201e-05/0.01253, allocations: 11.94 kB / 387.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-06/0.01254, allocations: 0 / 387.9 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.538e-05/0.01259, allocations: 12 kB / 388 MB, free: 8.246 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.01263, allocations: 23.84 kB / 388 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.01263, allocations: 4 kB / 388 MB, free: 8.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.264e-05/0.01268, allocations: 135.2 kB / 388.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01268, allocations: 0 / 388.1 MB, free: 8.086 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002021/0.01289, allocations: 44 kB / 388.2 MB, free: 8.043 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.403e-05/0.01298, allocations: 95.28 kB / 388.3 MB, free: 7.938 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.01329, allocations: 277.3 kB / 388.5 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.0133, allocations: 4 kB / 388.5 MB, free: 7.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.01344, allocations: 228.1 kB / 388.8 MB, free: 7.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.01366, allocations: 24.11 kB / 388.8 MB, free: 7.375 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006872/0.01435, allocations: 378.7 kB / 389.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.389e-05/0.01441, allocations: 76.22 kB / 389.2 MB, free: 6.871 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.242e-05/0.01444, allocations: 9.484 kB / 389.2 MB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.01452, allocations: 98.12 kB / 389.3 MB, free: 6.766 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.01452, allocations: 4 kB / 389.3 MB, free: 6.762 MB / 362.7 MB Notification: Performance of Templates: time 0.003977/0.01849, allocations: 1.736 MB / 391.1 MB, free: 5.047 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.4228152367286384]