Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001451/0.001451, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001168/0.001168, allocations: 168.7 kB / 24.91 MB, free: 9.199 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.033/1.033, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2484/0.2484, allocations: 34.26 MB / 296.1 MB, free: 0.7188 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.988e-06/3.988e-06, allocations: 3.984 kB / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.587e-05/2.986e-05, allocations: 3.188 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004023/0.004053, allocations: 1.953 MB / 327.2 MB, free: 5.758 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.005251, allocations: 0.5577 MB / 327.7 MB, free: 5.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.267e-05/0.005344, allocations: 7.938 kB / 327.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.005453, allocations: 23.8 kB / 327.8 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.124e-05/0.005534, allocations: 43.56 kB / 327.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.005721, allocations: 47.88 kB / 327.9 MB, free: 5.074 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.005861, allocations: 151.8 kB / 328 MB, free: 4.926 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.005982, allocations: 58.41 kB / 328.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.00613, allocations: 91.78 kB / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.343e-05/0.006223, allocations: 47.88 kB / 328.2 MB, free: 4.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.006244, allocations: 15.94 kB / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.591e-05/0.00629, allocations: 16 kB / 328.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.272e-05/0.006313, allocations: 27.91 kB / 328.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.862e-05/0.006351, allocations: 47.91 kB / 328.3 MB, free: 4.625 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.006507, allocations: 103.6 kB / 328.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.006509, allocations: 0 / 328.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.00651, allocations: 0 / 328.4 MB, free: 4.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.006514, allocations: 7.938 kB / 328.4 MB, free: 4.516 MB / 298.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.0003858/0.0069, allocations: 342.2 kB / 328.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.006937, allocations: 12.03 kB / 328.8 MB, free: 4.148 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.007046, allocations: 28.91 kB / 328.8 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.007204, allocations: 141.6 kB / 328.9 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.007215, allocations: 12.38 kB / 328.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.007241, allocations: 12.38 kB / 328.9 MB, free: 3.934 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001313/0.007372, allocations: 102.9 kB / 329 MB, free: 3.824 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.007382, allocations: 4.188 kB / 329 MB, free: 3.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.007394, allocations: 8.125 kB / 329.1 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.007399, allocations: 4 kB / 329.1 MB, free: 3.809 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.788e-05/0.007447, allocations: 35.95 kB / 329.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003729/0.00782, allocations: 291.8 kB / 329.4 MB, free: 3.473 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.007931, allocations: 74.53 kB / 329.5 MB, free: 3.391 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.459e-05/0.007966, allocations: 28.84 kB / 329.5 MB, free: 3.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.00798, allocations: 4 kB / 329.5 MB, free: 3.355 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.008002, allocations: 30.56 kB / 329.5 MB, free: 3.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 9.42e-07/0.008003, allocations: 4 kB / 329.5 MB, free: 3.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008227/0.008826, allocations: 0.5485 MB / 330.1 MB, free: 2.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.008858, allocations: 63.34 kB / 330.1 MB, free: 2.637 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.341e-05/0.008932, allocations: 133 kB / 330.3 MB, free: 2.496 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.008945, allocations: 33.64 kB / 330.3 MB, free: 2.457 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.009002, allocations: 112.5 kB / 330.4 MB, free: 2.344 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.009039, allocations: 71.31 kB / 330.5 MB, free: 2.273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/0.009083, allocations: 37.69 kB / 330.5 MB, free: 2.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.009165, allocations: 322.8 kB / 330.8 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.196e-05/0.009187, allocations: 15.98 kB / 330.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.304e-05/0.00923, allocations: 50.59 kB / 330.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.665e-05/0.009307, allocations: 81.28 kB / 331 MB, free: 1.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.009308, allocations: 4 kB / 331 MB, free: 1.738 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001498/0.009458, allocations: 130.3 kB / 331.1 MB, free: 1.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.009469, allocations: 4 kB / 331.1 MB, free: 1.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.009475, allocations: 4 kB / 331.1 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001027/0.009578, allocations: 32.77 kB / 331.1 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.283e-05/0.009671, allocations: 39.92 kB / 331.2 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008324/0.0105, allocations: 1.434 MB / 332.6 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.732e-05/0.01055, allocations: 8 kB / 332.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.01056, allocations: 4 kB / 332.6 MB, free: 15.98 MB / 314.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 8.413e-05/0.01064, allocations: 121.8 kB / 332.7 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.01067, allocations: 11.94 kB / 332.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.434e-05/0.01069, allocations: 24.8 kB / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.01069, allocations: 4 kB / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.0107, allocations: 0 / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.0107, allocations: 0 / 332.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003563/0.01106, allocations: 341 kB / 333.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01106, allocations: 48 / 333.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.688e-05/0.01115, allocations: 39.91 kB / 333.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.255e-05/0.01122, allocations: 32.86 kB / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.01123, allocations: 0 / 333.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006041/0.01183, allocations: 1.222 MB / 334.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01183, allocations: 0 / 334.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.01204, allocations: 245 kB / 334.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.899e-06/0.01205, allocations: 11.91 kB / 334.7 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.01206, allocations: 8.062 kB / 334.7 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.218e-05/0.0121, allocations: 4 kB / 334.7 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.01214, allocations: 15.97 kB / 334.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.01215, allocations: 7.938 kB / 334.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.896e-05/0.01217, allocations: 23.5 kB / 334.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01217, allocations: 0 / 334.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001941/0.01236, allocations: 44 kB / 334.8 MB, free: 13.7 MB / 314.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.553e-05/0.01245, allocations: 80.36 kB / 334.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002493/0.0127, allocations: 217.3 kB / 335.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.0127, allocations: 0 / 335.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.01282, allocations: 184.5 kB / 335.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.01299, allocations: 16.23 kB / 335.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.01358, allocations: 376.5 kB / 335.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.532e-05/0.01362, allocations: 76.22 kB / 335.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.946e-05/0.01365, allocations: 5.5 kB / 335.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.057e-05/0.01371, allocations: 67.36 kB / 335.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of SimCode: time 5.92e-07/0.01371, allocations: 0 / 335.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of Templates: time 0.003478/0.01719, allocations: 1.738 MB / 337.5 MB, free: 10.89 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.0626005111262202]