Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.0008971, allocations: 94.61 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.539e-05/1.542e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.4524, allocations: 77.67 MB / 465.1 MB, free: 1.195 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.4527, allocations: 77.89 kB / 465.2 MB, free: 1.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.4638, allocations: 4.114 MB / 469.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4639, allocations: 0 / 469.3 MB, free: 13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.4639, allocations: 8 kB / 469.3 MB, free: 13 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007232/0.4647, allocations: 478.8 kB / 469.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.4647, allocations: 8.031 kB / 469.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.693e-05/0.4648, allocations: 23.72 kB / 469.8 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.4651, allocations: 235.3 kB / 470.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.4651, allocations: 4 kB / 470.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.4652, allocations: 16 kB / 470.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002499/0.4654, allocations: 116.8 kB / 470.2 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.4657, allocations: 154.4 kB / 470.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.4657, allocations: 0 / 470.3 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.4658, allocations: 3.953 kB / 470.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.4658, allocations: 8 kB / 470.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008974/0.4667, allocations: 0.568 MB / 470.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.4669, allocations: 160.4 kB / 471.1 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.4671, allocations: 88.84 kB / 471.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4671, allocations: 8 kB / 471.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.4672, allocations: 34.59 kB / 471.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.4672, allocations: 224 / 471.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001562/0.4687, allocations: 0.9049 MB / 472.1 MB, free: 9.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/0.4688, allocations: 55.41 kB / 472.2 MB, free: 9.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.4689, allocations: 142.7 kB / 472.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.4689, allocations: 25.7 kB / 472.3 MB, free: 9.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.469, allocations: 140.3 kB / 472.5 MB, free: 9.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.356e-05/0.4691, allocations: 110.4 kB / 472.6 MB, free: 9.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.257e-06/0.4691, allocations: 0 / 472.6 MB, free: 9.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4692, allocations: 330.8 kB / 472.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.355e-05/0.4693, allocations: 60 kB / 473 MB, free: 9.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.4694, allocations: 95.16 kB / 473 MB, free: 8.977 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001127/0.4696, allocations: 69.38 kB / 473.1 MB, free: 8.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.4696, allocations: 0 / 473.1 MB, free: 8.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003825/0.47, allocations: 247.5 kB / 473.4 MB, free: 8.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.47, allocations: 9.156 kB / 473.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.47, allocations: 0 / 473.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.4702, allocations: 48.83 kB / 473.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002546/0.4704, allocations: 55.91 kB / 473.5 MB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.4717, allocations: 1.517 MB / 475 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.4718, allocations: 8.016 kB / 475 MB, free: 6.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.4719, allocations: 8 kB / 475 MB, free: 6.902 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.859e-05/0.472, allocations: 109 kB / 475.1 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/0.472, allocations: 23.75 kB / 475.1 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.797e-05/0.4721, allocations: 23.41 kB / 475.2 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.4721, allocations: 4 kB / 475.2 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.4721, allocations: 4 kB / 475.2 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4721, allocations: 7.938 kB / 475.2 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009588/0.4731, allocations: 0.6931 MB / 475.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4731, allocations: 4 kB / 475.9 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002597/0.4734, allocations: 59.91 kB / 475.9 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.4735, allocations: 36.92 kB / 476 MB, free: 5.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.4735, allocations: 4 kB / 476 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.4745, allocations: 1.323 MB / 477.3 MB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.4746, allocations: 3.984 kB / 477.3 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.4751, allocations: 480.4 kB / 477.8 MB, free: 3.902 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.4752, allocations: 96.86 kB / 477.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.4752, allocations: 0 / 477.9 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.4754, allocations: 4 kB / 477.9 MB, free: 3.785 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.202e-05/0.4754, allocations: 31.95 kB / 477.9 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.4755, allocations: 15.98 kB / 477.9 MB, free: 3.738 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.827e-05/0.4755, allocations: 111.3 kB / 478 MB, free: 3.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4756, allocations: 0 / 478 MB, free: 3.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003927/0.476, allocations: 56 kB / 478.1 MB, free: 3.574 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001671/0.4761, allocations: 103.2 kB / 478.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005728/0.4767, allocations: 305.7 kB / 478.5 MB, free: 3.156 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4767, allocations: 4.125 kB / 478.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002683/0.477, allocations: 221.9 kB / 478.7 MB, free: 2.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.4773, allocations: 23.94 kB / 478.7 MB, free: 2.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009349/0.4783, allocations: 0.5669 MB / 479.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.4786, allocations: 0.7642 MB / 480 MB, free: 1.516 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.21e-05/0.4787, allocations: 22.06 kB / 480.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.99e-05/0.4787, allocations: 19.44 kB / 480.1 MB, free: 1.477 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4787, allocations: 3.938 kB / 480.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of Templates: time 0.005049/0.4838, allocations: 2.252 MB / 482.3 MB, free: 15.24 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches