Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007675/0.0007676, allocations: 95.58 kB / 17.31 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000833/0.000833, allocations: 174.5 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.123/1.123, allocations: 223.3 MB / 242.3 MB, free: 244 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002049/0.0002046, allocations: 12.72 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07066/0.07088, allocations: 50.42 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004363/0.07527, allocations: 4.961 MB / 357.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002755/0.07804, allocations: 2.005 MB / 359.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005532/0.07861, allocations: 31.81 kB / 359.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003415/0.07896, allocations: 158.8 kB / 359.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.07933, allocations: 142.8 kB / 359.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006311/0.07997, allocations: 335.4 kB / 360.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008223/0.0808, allocations: 0.9584 MB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000638/0.08145, allocations: 0.5475 MB / 361.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002613/0.08172, allocations: 230.9 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002743/0.082, allocations: 278.3 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.08206, allocations: 32 kB / 362.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.08223, allocations: 87.97 kB / 362.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.08235, allocations: 135.4 kB / 362.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.08261, allocations: 375.7 kB / 362.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006177/0.08324, allocations: 0.8844 MB / 363.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.08325, allocations: 8 kB / 363.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.08325, allocations: 0 / 363.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.08328, allocations: 0 / 363.6 MB, free: 8.5 MB / 302.1 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.001029/0.08431, allocations: 0.8775 MB / 364.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.08435, allocations: 8.031 kB / 364.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.08446, allocations: 87.91 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005191/0.08499, allocations: 0.4986 MB / 365.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.08504, allocations: 62.38 kB / 365.2 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.547e-05/0.08514, allocations: 88.38 kB / 365.2 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.08632, allocations: 0.8008 MB / 366 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.08636, allocations: 11.89 kB / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.352e-05/0.08642, allocations: 36 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.08644, allocations: 20 kB / 366.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008501/0.0873, allocations: 0.5035 MB / 366.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/0.08995, allocations: 2.899 MB / 369.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.0904, allocations: 223.7 kB / 369.7 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.09057, allocations: 108.7 kB / 369.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001752/0.09075, allocations: 247.3 kB / 370.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.09078, allocations: 46.55 kB / 370.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.333e-06/0.09079, allocations: 0 / 370.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001919/0.09271, allocations: 1.273 MB / 371.4 MB, free: 308 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.09275, allocations: 55.41 kB / 371.5 MB, free: 240 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1251/0.2179, allocations: 307.2 kB / 371.8 MB, free: 24.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.576e-05/0.2179, allocations: 31.83 kB / 371.8 MB, free: 24.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.2182, allocations: 397.1 kB / 372.2 MB, free: 24.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.2183, allocations: 137.5 kB / 372.3 MB, free: 24.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.2183, allocations: 43.66 kB / 372.3 MB, free: 24.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.085e-05/0.2184, allocations: 352.2 kB / 372.7 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.2187, allocations: 108.4 kB / 372.8 MB, free: 24.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.2189, allocations: 253 kB / 373 MB, free: 23.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.2193, allocations: 393.7 kB / 373.4 MB, free: 23.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2193, allocations: 4.469 kB / 373.4 MB, free: 23.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006637/0.22, allocations: 458.7 kB / 373.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.22, allocations: 12.25 kB / 373.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.2201, allocations: 4.188 kB / 373.9 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/0.2202, allocations: 40.66 kB / 373.9 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.2206, allocations: 113.6 kB / 374 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002309/0.2208, allocations: 0.5487 MB / 374.6 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.221, allocations: 17.41 kB / 374.6 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.221, allocations: 25.34 kB / 374.6 MB, free: 23.12 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002437/0.2213, allocations: 215.1 kB / 374.8 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.622e-05/0.2213, allocations: 39.39 kB / 374.9 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005688/0.2219, allocations: 329 kB / 375.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2219, allocations: 5.141 kB / 375.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2219, allocations: 2.25 kB / 375.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.222, allocations: 3.938 kB / 375.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2232, allocations: 1.019 MB / 376.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2232, allocations: 5 kB / 376.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003017/0.2235, allocations: 77.88 kB / 376.3 MB, free: 22.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.2236, allocations: 37.69 kB / 376.4 MB, free: 22.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.2236, allocations: 14.16 kB / 376.4 MB, free: 22.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001755/0.2238, allocations: 0.5558 MB / 376.9 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.2238, allocations: 1.531 kB / 376.9 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005876/0.2244, allocations: 0.5525 MB / 377.5 MB, free: 21.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.2245, allocations: 107.2 kB / 377.6 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.2245, allocations: 8.641 kB / 377.6 MB, free: 21.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.2247, allocations: 15.47 kB / 377.6 MB, free: 21.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.2247, allocations: 34.48 kB / 377.6 MB, free: 21.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.2248, allocations: 14.38 kB / 377.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001631/0.2249, allocations: 208.8 kB / 377.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2249, allocations: 0 / 377.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.2254, allocations: 120.3 kB / 378 MB, free: 21.28 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001149/0.2255, allocations: 123.5 kB / 378.1 MB, free: 21.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004891/0.226, allocations: 305.7 kB / 378.4 MB, free: 21.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.226, allocations: 5.125 kB / 378.4 MB, free: 21.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002212/0.2262, allocations: 146.7 kB / 378.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.2267, allocations: 59.8 kB / 378.6 MB, free: 21.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002022/0.2287, allocations: 2.131 MB / 380.7 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.2291, allocations: 0.9248 MB / 381.7 MB, free: 18.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-05/0.2292, allocations: 37.98 kB / 381.7 MB, free: 18.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2292, allocations: 3.938 kB / 381.7 MB, free: 18.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01099/0.2402, allocations: 9.589 MB / 391.3 MB, free: 15.23 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches