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.0013/0.0013, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 221.3 MB / 235.5 MB, free: 2.926 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.0008491/0.0008492, allocations: 91.48 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.343e-05, allocations: 4 kB / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1029, allocations: 50.42 MB / 394.2 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.4779, allocations: 78.34 MB / 472.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4782, allocations: 75.78 kB / 472.7 MB, free: 9.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01149/0.4897, allocations: 4.143 MB / 476.8 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4898, allocations: 0 / 476.8 MB, free: 5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.4898, allocations: 7.984 kB / 476.8 MB, free: 4.992 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.0006637/0.4905, allocations: 478.8 kB / 477.3 MB, free: 4.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.4905, allocations: 8.031 kB / 477.3 MB, free: 4.469 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.055e-05/0.4906, allocations: 31.72 kB / 477.3 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.4909, allocations: 231.3 kB / 477.5 MB, free: 4.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.491, allocations: 12.44 kB / 477.5 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.491, allocations: 27.94 kB / 477.6 MB, free: 4.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.4914, allocations: 183.3 kB / 477.8 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.4914, allocations: 0 / 477.8 MB, free: 3.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.4915, allocations: 12 kB / 477.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.4915, allocations: 7.953 kB / 477.8 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.4918, allocations: 125.7 kB / 477.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.4929, allocations: 0.6307 MB / 478.5 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003186/0.4932, allocations: 174.4 kB / 478.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001493/0.4934, allocations: 92.84 kB / 478.8 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.007e-05/0.4934, allocations: 8 kB / 478.8 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.4935, allocations: 30.56 kB / 478.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.4935, allocations: 224 / 478.8 MB, free: 2.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001851/0.4953, allocations: 0.9917 MB / 479.8 MB, free: 1.719 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.4954, allocations: 55.41 kB / 479.9 MB, free: 1.652 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.4956, allocations: 158.3 kB / 480 MB, free: 1.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.4956, allocations: 33.7 kB / 480.1 MB, free: 1.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.445e-05/0.4957, allocations: 136.5 kB / 480.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.95e-05/0.4958, allocations: 110.3 kB / 480.3 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.4958, allocations: 8 kB / 480.3 MB, free: 1.195 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.496, allocations: 330.8 kB / 480.6 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.4961, allocations: 68 kB / 480.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.4962, allocations: 90.84 kB / 480.8 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.4964, allocations: 82.44 kB / 480.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.4964, allocations: 4 kB / 480.9 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004439/0.4969, allocations: 278.8 kB / 481.1 MB, free: 344 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.4969, allocations: 8.062 kB / 481.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.4969, allocations: 4 kB / 481.2 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/0.4971, allocations: 40.83 kB / 481.2 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.4973, allocations: 55.91 kB / 481.2 MB, free: 232 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.4989, allocations: 1.569 MB / 482.8 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.4991, allocations: 11.98 kB / 482.8 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.4991, allocations: 12 kB / 482.8 MB, free: 14.5 MB / 362.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 0.0001141/0.4992, allocations: 117 kB / 483 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.4993, allocations: 19.81 kB / 483 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.003e-05/0.4994, allocations: 34.77 kB / 483 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4994, allocations: 7.953 kB / 483 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4994, allocations: 0 / 483 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.4994, allocations: 3.984 kB / 483 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.5005, allocations: 0.7633 MB / 483.8 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5006, allocations: 3.938 kB / 483.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.5008, allocations: 63.91 kB / 483.9 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.501, allocations: 36.92 kB / 483.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.501, allocations: 8 kB / 483.9 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.5023, allocations: 1.378 MB / 485.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.5023, allocations: 0 / 485.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.503, allocations: 491.8 kB / 485.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.77e-05/0.5031, allocations: 109 kB / 485.9 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.5032, allocations: 12 kB / 485.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.5033, allocations: 8 kB / 485.9 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.5034, allocations: 35.84 kB / 485.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.5034, allocations: 8 kB / 485.9 MB, free: 11.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001316/0.5036, allocations: 139.5 kB / 486.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5036, allocations: 0 / 486.1 MB, free: 10.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004117/0.504, allocations: 68 kB / 486.1 MB, free: 10.93 MB / 362.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.0002034/0.5042, allocations: 103.2 kB / 486.2 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006904/0.5049, allocations: 322.5 kB / 486.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.5049, allocations: 4.062 kB / 486.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003242/0.5052, allocations: 234.7 kB / 486.8 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.5056, allocations: 33.72 kB / 486.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.5067, allocations: 0.5826 MB / 487.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.5072, allocations: 0.7641 MB / 488.2 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.004e-05/0.5073, allocations: 22.02 kB / 488.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.487e-05/0.5073, allocations: 23.44 kB / 488.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5073, allocations: 0 / 488.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of Templates: time 0.006134/0.5135, allocations: 2.432 MB / 490.6 MB, free: 6.348 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