Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0009425/0.0009422, allocations: 180.5 kB / 17.41 MB, free: 4.406 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.603/1.603, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.0008813/0.0008813, allocations: 90.34 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003135, allocations: 15.98 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2468, allocations: 47.56 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09651/0.3433, allocations: 81.64 MB / 457.4 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.3436, allocations: 71.97 kB / 457.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02766/0.3713, allocations: 11.73 MB / 469.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3713, allocations: 4 kB / 469.2 MB, free: 3.176 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.289e-05/0.3714, allocations: 24 kB / 469.2 MB, free: 3.152 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001217/0.3726, allocations: 0.8737 MB / 470.1 MB, free: 2.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3727, allocations: 12.03 kB / 470.1 MB, free: 2.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.3728, allocations: 87.91 kB / 470.2 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/0.3735, allocations: 0.5063 MB / 470.7 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.3735, allocations: 62.38 kB / 470.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.3736, allocations: 84.38 kB / 470.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.375, allocations: 0.801 MB / 471.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.426e-05/0.375, allocations: 12.08 kB / 471.6 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.059e-05/0.3751, allocations: 35.94 kB / 471.7 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3751, allocations: 27.98 kB / 471.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009041/0.376, allocations: 491.6 kB / 472.2 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003106/0.3791, allocations: 2.908 MB / 475.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/0.3796, allocations: 215.3 kB / 475.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.3798, allocations: 112.8 kB / 475.4 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002121/0.38, allocations: 247.3 kB / 475.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3801, allocations: 42.48 kB / 475.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.3801, allocations: 0 / 475.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.00224/0.3823, allocations: 1.261 MB / 476.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.3824, allocations: 55.41 kB / 477 MB, free: 10.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000305/0.3827, allocations: 304.5 kB / 477.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.3827, allocations: 29.7 kB / 477.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.383, allocations: 402.5 kB / 477.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.537e-05/0.3831, allocations: 134 kB / 477.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.3831, allocations: 8 kB / 477.8 MB, free: 10.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.3832, allocations: 350.7 kB / 478.2 MB, free: 9.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001998/0.3834, allocations: 105.1 kB / 478.3 MB, free: 9.578 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.3837, allocations: 258.6 kB / 478.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/0.3843, allocations: 396.7 kB / 478.9 MB, free: 8.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3843, allocations: 0 / 478.9 MB, free: 8.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006915/0.385, allocations: 461.6 kB / 479.4 MB, free: 8.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.385, allocations: 4 kB / 479.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.385, allocations: 12.03 kB / 479.4 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001916/0.3852, allocations: 40.83 kB / 479.4 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003361/0.3856, allocations: 111.8 kB / 479.5 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003626/0.3859, allocations: 0.5561 MB / 480.1 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.3861, allocations: 16 kB / 480.1 MB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.3862, allocations: 20.06 kB / 480.1 MB, free: 7.566 MB / 362.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 () * Number of clocked 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.0003324/0.3865, allocations: 225.6 kB / 480.4 MB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.206e-05/0.3866, allocations: 31.62 kB / 480.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005735/0.3871, allocations: 330.1 kB / 480.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.3872, allocations: 8 kB / 480.7 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3872, allocations: 0 / 480.7 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3872, allocations: 3.984 kB / 480.7 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.3886, allocations: 1.022 MB / 481.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3886, allocations: 0 / 481.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003416/0.3889, allocations: 83.91 kB / 481.8 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.3891, allocations: 32.83 kB / 481.9 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.3891, allocations: 8 kB / 481.9 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003048/0.3894, allocations: 0.5603 MB / 482.4 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3894, allocations: 0 / 482.4 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007149/0.3902, allocations: 0.5516 MB / 483 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.357e-05/0.3903, allocations: 104.6 kB / 483.1 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.3903, allocations: 8 kB / 483.1 MB, free: 4.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3905, allocations: 8 kB / 483.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/0.3906, allocations: 31.95 kB / 483.1 MB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.3906, allocations: 20.03 kB / 483.1 MB, free: 4.371 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002043/0.3908, allocations: 203.1 kB / 483.3 MB, free: 4.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3908, allocations: 0 / 483.3 MB, free: 4.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005026/0.3913, allocations: 124 kB / 483.5 MB, free: 4.051 MB / 362.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 () * Number of clocked 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.0001836/0.3915, allocations: 134.7 kB / 483.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007101/0.3922, allocations: 315.2 kB / 483.9 MB, free: 3.602 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3923, allocations: 0 / 483.9 MB, free: 3.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.3926, allocations: 142.8 kB / 484 MB, free: 3.465 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007968/0.3935, allocations: 65.34 kB / 484.1 MB, free: 3.402 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.3961, allocations: 2.054 MB / 486.2 MB, free: 1.301 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.3967, allocations: 0.921 MB / 487.1 MB, free: 360 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.714e-05/0.3968, allocations: 35.44 kB / 487.1 MB, free: 324 kB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3968, allocations: 4 kB / 487.1 MB, free: 320 kB / 362.7 MB Notification: Performance of Templates: time 0.01196/0.4088, allocations: 9.565 MB / 496.7 MB, free: 6.75 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches