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.001454/0.001453, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.304/1.304, allocations: 205.4 MB / 224.2 MB, free: 9.016 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.0007427/0.0007426, allocations: 82.38 kB / 272.5 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003153, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1999, allocations: 47.58 MB / 377 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08528/0.2852, allocations: 81.64 MB / 458.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.2855, allocations: 75.97 kB / 458.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03003/0.3155, allocations: 11.74 MB / 470.5 MB, free: 3.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3155, allocations: 0 / 470.5 MB, free: 3.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.689e-05/0.3156, allocations: 20 kB / 470.5 MB, free: 3.07 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.001715/0.3173, allocations: 0.8737 MB / 471.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3174, allocations: 8.031 kB / 471.4 MB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.3176, allocations: 91.91 kB / 471.5 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007352/0.3183, allocations: 0.5063 MB / 472 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.3184, allocations: 66.31 kB / 472 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.3185, allocations: 88.38 kB / 472.1 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.32, allocations: 0.7971 MB / 472.9 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.719e-05/0.3201, allocations: 8.094 kB / 472.9 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-05/0.3202, allocations: 39.94 kB / 473 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.3202, allocations: 24 kB / 473 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.3213, allocations: 495.6 kB / 473.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.3251, allocations: 2.912 MB / 476.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005447/0.3256, allocations: 215.3 kB / 476.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.3258, allocations: 104.8 kB / 476.7 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001968/0.326, allocations: 251.2 kB / 476.9 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.3261, allocations: 42.5 kB / 477 MB, free: 12.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.574e-06/0.3261, allocations: 4 kB / 477 MB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=35): time 0.002279/0.3284, allocations: 1.261 MB / 478.2 MB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.3284, allocations: 55.41 kB / 478.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.3288, allocations: 296.5 kB / 478.6 MB, free: 10.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.3288, allocations: 33.7 kB / 478.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.329, allocations: 394.6 kB / 479 MB, free: 10.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.113e-05/0.3291, allocations: 134.1 kB / 479.1 MB, free: 9.961 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.3291, allocations: 12 kB / 479.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3293, allocations: 354.7 kB / 479.5 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.3295, allocations: 105.1 kB / 479.6 MB, free: 9.492 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.3298, allocations: 258.6 kB / 479.9 MB, free: 9.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.3303, allocations: 392.7 kB / 480.2 MB, free: 8.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.992e-06/0.3303, allocations: 4 kB / 480.2 MB, free: 8.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006781/0.331, allocations: 457.2 kB / 480.7 MB, free: 8.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.331, allocations: 8 kB / 480.7 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.331, allocations: 4 kB / 480.7 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001849/0.3312, allocations: 40.83 kB / 480.7 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003379/0.3316, allocations: 107.8 kB / 480.8 MB, free: 8.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003675/0.332, allocations: 0.5643 MB / 481.4 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.3322, allocations: 19.94 kB / 481.4 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.3322, allocations: 24 kB / 481.4 MB, free: 7.477 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.0003688/0.3326, allocations: 217.6 kB / 481.7 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.751e-05/0.3327, allocations: 31.62 kB / 481.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.3334, allocations: 330.2 kB / 482 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.3334, allocations: 4 kB / 482 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3334, allocations: 0 / 482 MB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3334, allocations: 3.984 kB / 482 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.3349, allocations: 1.034 MB / 483.1 MB, free: 5.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.3349, allocations: 4 kB / 483.1 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003477/0.3352, allocations: 79.91 kB / 483.1 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.3354, allocations: 36.98 kB / 483.2 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.3354, allocations: 8 kB / 483.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003338/0.3358, allocations: 0.5446 MB / 483.7 MB, free: 5.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.3358, allocations: 3.938 kB / 483.7 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007611/0.3365, allocations: 0.5516 MB / 484.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.741e-05/0.3366, allocations: 112.6 kB / 484.4 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.3367, allocations: 12 kB / 484.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.3369, allocations: 8 kB / 484.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.3369, allocations: 23.97 kB / 484.4 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.3369, allocations: 15.92 kB / 484.5 MB, free: 4.289 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002398/0.3372, allocations: 211.1 kB / 484.7 MB, free: 4.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3372, allocations: 0 / 484.7 MB, free: 4.082 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005099/0.3377, allocations: 120 kB / 484.8 MB, free: 3.965 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.0001907/0.3379, allocations: 134.8 kB / 484.9 MB, free: 3.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006029/0.3385, allocations: 308.2 kB / 485.2 MB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3385, allocations: 12.12 kB / 485.2 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.3388, allocations: 137.1 kB / 485.4 MB, free: 3.379 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.3394, allocations: 57.41 kB / 485.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.3422, allocations: 2.011 MB / 487.4 MB, free: 1.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005627/0.3427, allocations: 0.9173 MB / 488.3 MB, free: 332 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002281/0.343, allocations: 50.58 kB / 488.4 MB, free: 284 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.3431, allocations: 43.36 kB / 488.4 MB, free: 240 kB / 362.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3431, allocations: 0 / 488.4 MB, free: 240 kB / 362.7 MB Notification: Performance of Templates: time 0.02335/0.3665, allocations: 3.457 MB / 491.9 MB, free: 12.79 MB / 378.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/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_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches