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.001488/0.001488, allocations: 175.8 kB / 16.72 MB, free: 5.082 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.602/1.602, allocations: 205.4 MB / 222.9 MB, free: 8.922 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.0007615/0.0007611, allocations: 93.53 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003595, allocations: 12 kB / 327.5 MB, free: 15.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2568, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004526/0.2614, allocations: 4.664 MB / 379.7 MB, free: 41.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003237/0.2646, allocations: 1.959 MB / 381.7 MB, free: 40.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009247/0.2656, allocations: 32.62 kB / 381.7 MB, free: 40.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.266, allocations: 141.2 kB / 381.9 MB, free: 40.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.2664, allocations: 144.1 kB / 382 MB, free: 39.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007624/0.2672, allocations: 252.7 kB / 382.3 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009272/0.2681, allocations: 0.9275 MB / 383.2 MB, free: 39.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007076/0.2688, allocations: 0.5402 MB / 383.7 MB, free: 38.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003252/0.2692, allocations: 233.9 kB / 384 MB, free: 38.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.2695, allocations: 258.5 kB / 384.2 MB, free: 38.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.216e-05/0.2696, allocations: 30.78 kB / 384.2 MB, free: 38.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002808/0.2699, allocations: 84.16 kB / 384.3 MB, free: 38.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.27, allocations: 126.3 kB / 384.4 MB, free: 38.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002942/0.2703, allocations: 355.6 kB / 384.8 MB, free: 38.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006914/0.271, allocations: 0.8796 MB / 385.7 MB, free: 37.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.271, allocations: 0 / 385.7 MB, free: 37.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.898e-06/0.271, allocations: 0.9688 kB / 385.7 MB, free: 37.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.271, allocations: 7.938 kB / 385.7 MB, free: 37.48 MB / 298.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.001175/0.2722, allocations: 0.8774 MB / 386.6 MB, free: 36.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.2723, allocations: 9.25 kB / 386.6 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.2724, allocations: 87.25 kB / 386.7 MB, free: 36.71 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006075/0.273, allocations: 0.5028 MB / 387.2 MB, free: 36.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.2731, allocations: 63.88 kB / 387.2 MB, free: 36.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.2732, allocations: 87.84 kB / 387.3 MB, free: 36.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.2745, allocations: 0.8019 MB / 388.1 MB, free: 35.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/0.2745, allocations: 4 kB / 388.1 MB, free: 35.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.232e-05/0.2746, allocations: 36 kB / 388.1 MB, free: 35.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.2746, allocations: 20 kB / 388.2 MB, free: 35.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000788/0.2754, allocations: 0.4957 MB / 388.7 MB, free: 34.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002468/0.2779, allocations: 2.899 MB / 391.6 MB, free: 31.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004695/0.2783, allocations: 223.3 kB / 391.8 MB, free: 31.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.2785, allocations: 112.7 kB / 391.9 MB, free: 31.58 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001831/0.2787, allocations: 251.3 kB / 392.1 MB, free: 31.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2787, allocations: 30.56 kB / 392.2 MB, free: 31.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.455e-06/0.2787, allocations: 0 / 392.2 MB, free: 31.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001922/0.2807, allocations: 1.274 MB / 393.4 MB, free: 29.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.2807, allocations: 55.41 kB / 393.5 MB, free: 29.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.2809, allocations: 304.5 kB / 393.8 MB, free: 29.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.281, allocations: 33.7 kB / 393.8 MB, free: 29.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.2811, allocations: 394.6 kB / 394.2 MB, free: 29.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.532e-05/0.2811, allocations: 134.1 kB / 394.3 MB, free: 28.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.2812, allocations: 8 kB / 394.3 MB, free: 28.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.518e-05/0.2812, allocations: 350.7 kB / 394.7 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.2814, allocations: 109.1 kB / 394.8 MB, free: 28.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.2816, allocations: 254.5 kB / 395 MB, free: 28.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.2821, allocations: 392.6 kB / 395.4 MB, free: 27.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2821, allocations: 0 / 395.4 MB, free: 27.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005565/0.2826, allocations: 464.9 kB / 395.9 MB, free: 27.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2827, allocations: 4 kB / 395.9 MB, free: 27.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2827, allocations: 8.594 kB / 395.9 MB, free: 27.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.2828, allocations: 40.84 kB / 395.9 MB, free: 27.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.2832, allocations: 115.8 kB / 396 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002531/0.2834, allocations: 0.5561 MB / 396.6 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.2836, allocations: 16 kB / 396.6 MB, free: 26.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.266e-05/0.2836, allocations: 23.94 kB / 396.6 MB, free: 26.46 MB / 298.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.000243/0.2839, allocations: 225.7 kB / 396.9 MB, free: 26.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.717e-05/0.2839, allocations: 35.56 kB / 396.9 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004907/0.2844, allocations: 329.3 kB / 397.2 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2845, allocations: 4 kB / 397.2 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2845, allocations: 4 kB / 397.2 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2845, allocations: 3.984 kB / 397.2 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.2856, allocations: 1.022 MB / 398.3 MB, free: 24.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2856, allocations: 3.984 kB / 398.3 MB, free: 24.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003325/0.2859, allocations: 79.91 kB / 398.3 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001161/0.286, allocations: 32.78 kB / 398.4 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.2861, allocations: 11.98 kB / 398.4 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002194/0.2863, allocations: 0.5603 MB / 398.9 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.2863, allocations: 0 / 398.9 MB, free: 24.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005763/0.2869, allocations: 0.5485 MB / 399.5 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.2869, allocations: 108.7 kB / 399.6 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.226e-05/0.287, allocations: 8 kB / 399.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001351/0.2871, allocations: 8 kB / 399.6 MB, free: 23.31 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.2872, allocations: 28 kB / 399.6 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.2872, allocations: 15.94 kB / 399.7 MB, free: 23.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000152/0.2874, allocations: 211.1 kB / 399.9 MB, free: 23.06 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2874, allocations: 0 / 399.9 MB, free: 23.06 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.2879, allocations: 120 kB / 400 MB, free: 22.95 MB / 298.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.0001565/0.288, allocations: 122.7 kB / 400.1 MB, free: 22.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005107/0.2885, allocations: 303.6 kB / 400.4 MB, free: 22.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2886, allocations: 4 kB / 400.4 MB, free: 22.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.2888, allocations: 138.3 kB / 400.5 MB, free: 22.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005063/0.2893, allocations: 65.53 kB / 400.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.2916, allocations: 2.069 MB / 402.7 MB, free: 20.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.2919, allocations: 0.9171 MB / 403.6 MB, free: 19.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.798e-05/0.292, allocations: 35.44 kB / 403.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of SimCode: time 6.61e-07/0.292, allocations: 0 / 403.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of Templates: time 0.009364/0.3014, allocations: 9.607 MB / 413.2 MB, free: 9.621 MB / 298.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/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_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches