Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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.001407/0.001407, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001476/0.001476, allocations: 161.7 kB / 24.27 MB, free: 172 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.505/1.505, allocations: 177.2 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") translateModel(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|inertia1.w|inertia2.w|inertia3.w|inertia4.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.679e-05, allocations: 6.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque): time 0.003591/0.003618, allocations: 2.16 MB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.005054, allocations: 0.7166 MB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.005163, allocations: 7.938 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.005316, allocations: 35.66 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002649/0.005581, allocations: 83.27 kB / 275.3 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.005914, allocations: 123.6 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.006313, allocations: 310.4 kB / 275.7 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.006451, allocations: 44.56 kB / 275.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.006674, allocations: 159.6 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.00683, allocations: 91.69 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.006872, allocations: 20 kB / 276 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.99e-05/0.006912, allocations: 20 kB / 276.1 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002766/0.007189, allocations: 51.77 kB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.00732, allocations: 87.75 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003378/0.007658, allocations: 267.2 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.007661, allocations: 0 / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.007662, allocations: 0 / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.007667, allocations: 0 / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008701/0.008537, allocations: 457.5 kB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.008575, allocations: 15.97 kB / 276.9 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.008679, allocations: 48.73 kB / 277 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.009059, allocations: 205.3 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.009094, allocations: 16.88 kB / 277.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.582e-05/0.00916, allocations: 20.38 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004889/0.009649, allocations: 240 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.00967, allocations: 4.141 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.009698, allocations: 12.38 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.009709, allocations: 7.938 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.01007, allocations: 139.8 kB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.0116, allocations: 0.9281 MB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004882/0.01209, allocations: 206.4 kB / 278.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.01224, allocations: 63.48 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.01227, allocations: 4 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.01231, allocations: 42.5 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=16): time 1.022e-06/0.01231, allocations: 0 / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006112/0.01292, allocations: 201.4 kB / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.01302, allocations: 136.5 kB / 279.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002437/0.01327, allocations: 198.7 kB / 279.4 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/0.01329, allocations: 25.7 kB / 279.4 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.01343, allocations: 168.2 kB / 279.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.0135, allocations: 71.38 kB / 279.6 MB, free: 10.24 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.561e-05/0.01358, allocations: 49.7 kB / 279.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.01377, allocations: 334.8 kB / 280 MB, free: 9.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.01392, allocations: 47.97 kB / 280 MB, free: 9.805 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.01418, allocations: 165.6 kB / 280.2 MB, free: 9.594 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.01459, allocations: 229.5 kB / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01459, allocations: 0 / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005415/0.01514, allocations: 269.5 kB / 280.7 MB, free: 9.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.01515, allocations: 12 kB / 280.7 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.01516, allocations: 7.984 kB / 280.7 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.01519, allocations: 7.938 kB / 280.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.01547, allocations: 68.16 kB / 280.8 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.01549, allocations: 11.94 kB / 280.8 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.01564, allocations: 27.83 kB / 280.8 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.01567, allocations: 15.98 kB / 280.8 MB, free: 8.902 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.01582, allocations: 137.7 kB / 281 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.921e-05/0.01592, allocations: 27.86 kB / 281 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.343e-05/0.01599, allocations: 25.02 kB / 281 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.016, allocations: 4 kB / 281 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.016, allocations: 4.75 kB / 281 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.01601, allocations: 3.938 kB / 281 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004051/0.01641, allocations: 181.2 kB / 281.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.01642, allocations: 4 kB / 281.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.01671, allocations: 47.97 kB / 281.3 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.01671, allocations: 0 / 281.3 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.01673, allocations: 15.92 kB / 281.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01673, allocations: 0 / 281.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.646e-06/0.01674, allocations: 4 kB / 281.3 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.01744, allocations: 0.5284 MB / 281.8 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.01748, allocations: 23.78 kB / 281.8 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.42e-05/0.01751, allocations: 8 kB / 281.8 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.01774, allocations: 4 kB / 281.9 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.37e-05/0.0178, allocations: 23.84 kB / 281.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.01782, allocations: 8 kB / 281.9 MB, free: 7.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.01797, allocations: 140.2 kB / 282 MB, free: 7.668 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01797, allocations: 0 / 282 MB, free: 7.668 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004559/0.01842, allocations: 63.89 kB / 282.1 MB, free: 7.605 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,signTorque.phi,inertia2.w,linearSpeedDependentTorque.phi,inertia3.w,quadraticSpeedDependentTorque.phi,inertia4.w,inverseSpeedDependentTorque.phi) * 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): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001371/0.01856, allocations: 103.2 kB / 282.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.01895, allocations: 143.7 kB / 282.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01896, allocations: 0 / 282.3 MB, free: 7.355 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.01912, allocations: 68.59 kB / 282.4 MB, free: 7.289 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.01983, allocations: 60.39 kB / 282.5 MB, free: 7.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.02144, allocations: 0.6748 MB / 283.1 MB, free: 6.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.02162, allocations: 146.1 kB / 283.3 MB, free: 6.359 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.925e-05/0.0217, allocations: 22.3 kB / 283.3 MB, free: 6.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.548e-05/0.02178, allocations: 24.48 kB / 283.3 MB, free: 6.312 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02178, allocations: 0 / 283.3 MB, free: 6.312 MB / 266.7 MB Notification: Performance of Templates: time 0.006379/0.02816, allocations: 2.386 MB / 285.7 MB, free: 3.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CompareBrakingTorque/CompareBrakingTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CompareBrakingTorque.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: 4.599980951054022]