Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 110.1 kB / 18.4 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 190.3 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 225.2 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 51.92 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.08971, allocations: 46.61 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004012/0.09377, allocations: 2.35 MB / 378.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.09489, allocations: 0.6239 MB / 378.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.09509, allocations: 4 kB / 378.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.09529, allocations: 39.59 kB / 378.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.09549, allocations: 75.33 kB / 378.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.09572, allocations: 59.86 kB / 378.9 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.09606, allocations: 270.7 kB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.09628, allocations: 110.7 kB / 379.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.09648, allocations: 103.6 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.09666, allocations: 115.5 kB / 379.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.929e-05/0.0967, allocations: 20 kB / 379.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.358e-05/0.09675, allocations: 20 kB / 379.6 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.325e-05/0.0968, allocations: 47.84 kB / 379.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.09692, allocations: 123.3 kB / 379.7 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003103/0.09724, allocations: 275 kB / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09725, allocations: 0 / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.09726, allocations: 0 / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.09728, allocations: 4 kB / 380 MB, free: 372 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.1693/0.2666, allocations: 0.5112 MB / 380.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.2667, allocations: 14.52 kB / 380.5 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.2667, allocations: 26.36 kB / 380.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003739/0.2671, allocations: 247.6 kB / 380.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2671, allocations: 17.38 kB / 380.8 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.877e-05/0.2672, allocations: 27.69 kB / 380.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.2676, allocations: 193.3 kB / 381 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.2677, allocations: 2.453 kB / 381 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.2677, allocations: 12.69 kB / 381.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2677, allocations: 5.344 kB / 381.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.268, allocations: 139.8 kB / 381.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009559/0.269, allocations: 0.6267 MB / 381.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.2693, allocations: 179.9 kB / 382 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.2695, allocations: 104.9 kB / 382.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/0.2695, allocations: 2.75 kB / 382.1 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.2695, allocations: 35.86 kB / 382.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.2695, allocations: 0 / 382.1 MB, free: 12.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001853/0.2714, allocations: 1.063 MB / 383.2 MB, free: 11.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.2714, allocations: 58.77 kB / 383.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001867/0.2716, allocations: 184.8 kB / 383.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.2716, allocations: 31.42 kB / 383.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.858e-05/0.2717, allocations: 138.2 kB / 383.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.96e-05/0.2718, allocations: 119.5 kB / 383.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.934e-05/0.2718, allocations: 55.28 kB / 383.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.665e-05/0.2719, allocations: 330.1 kB / 384.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.272, allocations: 70.28 kB / 384.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001452/0.2722, allocations: 102.2 kB / 384.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.2725, allocations: 189.8 kB / 384.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2725, allocations: 2.938 kB / 384.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004543/0.273, allocations: 306.4 kB / 384.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.273, allocations: 10.91 kB / 384.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.273, allocations: 2.906 kB / 384.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.2732, allocations: 42.59 kB / 384.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.2734, allocations: 56.91 kB / 384.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.2745, allocations: 1.744 MB / 386.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000121/0.2747, allocations: 9.625 kB / 386.6 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2747, allocations: 11.28 kB / 386.6 MB, free: 9.039 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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): 31 * 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.705e-05/0.2748, allocations: 137.4 kB / 386.8 MB, free: 8.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.633e-05/0.2748, allocations: 26.22 kB / 386.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.552e-05/0.2749, allocations: 33.03 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.2749, allocations: 7.031 kB / 386.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.2749, allocations: 5.891 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.2749, allocations: 1.266 kB / 386.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000957/0.2759, allocations: 0.7703 MB / 387.6 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.2759, allocations: 5.828 kB / 387.6 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.2762, allocations: 61.05 kB / 387.7 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001079/0.2763, allocations: 34.17 kB / 387.7 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.2763, allocations: 5.812 kB / 387.7 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000793/0.2771, allocations: 1.478 MB / 389.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2771, allocations: 5.281 kB / 389.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005961/0.2777, allocations: 485 kB / 389.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.423e-05/0.2778, allocations: 104.7 kB / 389.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.2778, allocations: 7.719 kB / 389.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.278, allocations: 8.672 kB / 389.8 MB, free: 6.426 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/0.278, allocations: 26.88 kB / 389.8 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.2781, allocations: 10.62 kB / 389.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.1e-05/0.2781, allocations: 131.4 kB / 390 MB, free: 6.328 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2782, allocations: 0 / 390 MB, free: 6.328 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003667/0.2785, allocations: 64.81 kB / 390 MB, free: 6.32 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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.0001051/0.2786, allocations: 106.7 kB / 390.1 MB, free: 6.227 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.2792, allocations: 340 kB / 390.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2792, allocations: 0 / 390.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.2795, allocations: 246.4 kB / 390.7 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.2799, allocations: 48.64 kB / 390.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.281, allocations: 0.7517 MB / 391.5 MB, free: 5.352 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.2812, allocations: 0.7552 MB / 392.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.969e-05/0.2812, allocations: 22.78 kB / 392.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2812, allocations: 0 / 392.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of Templates: time 0.006585/0.2878, allocations: 3.865 MB / 396.1 MB, free: 4.281 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches