Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001692/0.001692, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.592/1.592, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000811/0.000811, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.25e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09106/0.09112, allocations: 47.56 MB / 370 MB, free: 1.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3392/0.4304, allocations: 81.47 MB / 451.5 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4307, allocations: 69.97 kB / 451.5 MB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02956/0.4603, allocations: 11.71 MB / 463.3 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4603, allocations: 0 / 463.3 MB, free: 1.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.114e-05/0.4604, allocations: 24.16 kB / 463.3 MB, free: 1.625 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001305/0.4617, allocations: 0.8419 MB / 464.1 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.4618, allocations: 8.031 kB / 464.1 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.4619, allocations: 94.92 kB / 464.2 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007539/0.4627, allocations: 0.4936 MB / 464.7 MB, free: 100 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.971e-05/0.4627, allocations: 66 kB / 464.8 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.4629, allocations: 87.98 kB / 464.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.4643, allocations: 0.7732 MB / 465.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.471e-05/0.4643, allocations: 12 kB / 465.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.788e-05/0.4644, allocations: 32 kB / 465.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.308e-05/0.4644, allocations: 20 kB / 465.7 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00089/0.4653, allocations: 471.8 kB / 466.2 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003434/0.4688, allocations: 2.899 MB / 469.1 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005027/0.4693, allocations: 211.3 kB / 469.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.4695, allocations: 96.8 kB / 469.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000239/0.4697, allocations: 251.3 kB / 469.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.4698, allocations: 30.56 kB / 469.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 2.154e-06/0.4698, allocations: 0 / 469.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=35): time 0.002188/0.472, allocations: 1.158 MB / 470.8 MB, free: 9.664 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.472, allocations: 59.39 kB / 470.9 MB, free: 9.594 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.4723, allocations: 258.9 kB / 471.1 MB, free: 9.332 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.4724, allocations: 33.7 kB / 471.1 MB, free: 9.293 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.4726, allocations: 398.6 kB / 471.5 MB, free: 8.898 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.4727, allocations: 134.1 kB / 471.7 MB, free: 8.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.656e-05/0.4728, allocations: 12 kB / 471.7 MB, free: 8.754 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.4729, allocations: 346.8 kB / 472 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.4731, allocations: 101.1 kB / 472.1 MB, free: 8.309 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.4734, allocations: 242.7 kB / 472.3 MB, free: 8.008 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.4736, allocations: 147.5 kB / 472.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4736, allocations: 0 / 472.5 MB, free: 7.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006459/0.4743, allocations: 437.6 kB / 472.9 MB, free: 7.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.4743, allocations: 4 kB / 472.9 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4743, allocations: 7.938 kB / 472.9 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002143/0.4745, allocations: 36.84 kB / 473 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.4749, allocations: 115.8 kB / 473.1 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004384/0.4754, allocations: 0.5603 MB / 473.6 MB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.4756, allocations: 16 kB / 473.7 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/0.4756, allocations: 24 kB / 473.7 MB, free: 6.637 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.4757, allocations: 137.6 kB / 473.8 MB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-05/0.4758, allocations: 35.62 kB / 473.9 MB, free: 6.461 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005614/0.4764, allocations: 306.3 kB / 474.1 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.4764, allocations: 4 kB / 474.2 MB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4764, allocations: 3.953 kB / 474.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4764, allocations: 7.938 kB / 474.2 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.4779, allocations: 0.999 MB / 475.2 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/0.4779, allocations: 0 / 475.2 MB, free: 5.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.4782, allocations: 83.89 kB / 475.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.4784, allocations: 36.81 kB / 475.3 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.4784, allocations: 8 kB / 475.3 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003524/0.4788, allocations: 0.5487 MB / 475.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4788, allocations: 3.953 kB / 475.8 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.4795, allocations: 0.5914 MB / 476.4 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/0.4796, allocations: 104.7 kB / 476.5 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.4797, allocations: 12 kB / 476.5 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.4798, allocations: 8 kB / 476.6 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.324e-05/0.4799, allocations: 39.94 kB / 476.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.531e-05/0.4799, allocations: 8 kB / 476.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001908/0.4801, allocations: 206.2 kB / 476.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4801, allocations: 0 / 476.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005198/0.4807, allocations: 120 kB / 476.9 MB, free: 3.195 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002047/0.4809, allocations: 128.4 kB / 477 MB, free: 3.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.4814, allocations: 287.2 kB / 477.3 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4814, allocations: 0 / 477.3 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.4817, allocations: 138.3 kB / 477.5 MB, free: 2.648 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.4821, allocations: 65.23 kB / 477.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.4843, allocations: 1.35 MB / 478.9 MB, free: 1.191 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005294/0.4849, allocations: 0.9366 MB / 479.8 MB, free: 236 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000167/0.485, allocations: 43.34 kB / 479.9 MB, free: 192 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.655e-05/0.4851, allocations: 31.44 kB / 479.9 MB, free: 160 kB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4851, allocations: 0 / 479.9 MB, free: 160 kB / 346.7 MB Notification: Performance of Templates: time 0.008038/0.4932, allocations: 3.435 MB / 483.3 MB, free: 12.72 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches