Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001542/0.001541, allocations: 117.6 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 207.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2649, allocations: 50.55 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005952/0.2709, allocations: 5.44 MB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003186/0.2741, allocations: 2.138 MB / 416.8 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003999/0.2745, allocations: 35.81 kB / 416.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004313/0.275, allocations: 210.2 kB / 417.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.2753, allocations: 166.4 kB / 417.2 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008187/0.2761, allocations: 403 kB / 417.6 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008759/0.277, allocations: 1.025 MB / 418.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007289/0.2777, allocations: 0.6104 MB / 419.3 MB, free: 7.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003668/0.2781, allocations: 338.9 kB / 419.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003576/0.2785, allocations: 370.3 kB / 419.9 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.2786, allocations: 92 kB / 420 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002295/0.2788, allocations: 155.9 kB / 420.2 MB, free: 6.551 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.279, allocations: 199.4 kB / 420.4 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003142/0.2793, allocations: 434 kB / 420.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009927/0.2803, allocations: 1.192 MB / 422 MB, free: 4.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2803, allocations: 0 / 422 MB, free: 4.738 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2803, allocations: 0 / 422 MB, free: 4.738 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.2804, allocations: 0 / 422 MB, free: 4.738 MB / 334.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.001357/0.2817, allocations: 1.036 MB / 423 MB, free: 3.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.2818, allocations: 8.031 kB / 423 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.282, allocations: 107.8 kB / 423.1 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00073/0.2828, allocations: 0.522 MB / 423.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.2828, allocations: 62.38 kB / 423.7 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.2829, allocations: 88.28 kB / 423.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.2843, allocations: 0.8124 MB / 424.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.786e-05/0.2843, allocations: 4 kB / 424.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/0.2844, allocations: 36 kB / 424.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.2844, allocations: 20 kB / 424.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008976/0.2853, allocations: 0.4957 MB / 425.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.2881, allocations: 2.856 MB / 428 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005017/0.2886, allocations: 226.6 kB / 428.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.2888, allocations: 100.8 kB / 428.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001783/0.289, allocations: 251.3 kB / 428.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.289, allocations: 39.06 kB / 428.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/0.289, allocations: 0 / 428.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002132/0.2912, allocations: 1.257 MB / 429.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.2912, allocations: 55.41 kB / 430 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.2915, allocations: 317.5 kB / 430.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2915, allocations: 33.64 kB / 430.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.2918, allocations: 402.5 kB / 430.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.25e-05/0.2919, allocations: 134.1 kB / 430.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.292, allocations: 82.25 kB / 430.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2921, allocations: 350.7 kB / 431.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.2923, allocations: 113.1 kB / 431.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002616/0.2926, allocations: 250.7 kB / 431.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004715/0.293, allocations: 396.6 kB / 432 MB, free: 10.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.293, allocations: 0 / 432 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006766/0.2937, allocations: 457.2 kB / 432.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.2938, allocations: 4 kB / 432.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.2938, allocations: 8 kB / 432.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/0.2939, allocations: 41.38 kB / 432.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.2943, allocations: 107.9 kB / 432.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003897/0.2947, allocations: 0.5639 MB / 433.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2949, allocations: 16 kB / 433.2 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.2949, allocations: 16 kB / 433.2 MB, free: 8.902 MB / 350.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.0002603/0.2952, allocations: 225.6 kB / 433.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/0.2953, allocations: 39.62 kB / 433.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005949/0.2959, allocations: 322.1 kB / 433.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2959, allocations: 4 kB / 433.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2959, allocations: 0 / 433.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2959, allocations: 7.922 kB / 433.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.2979, allocations: 1.012 MB / 434.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.298, allocations: 0 / 434.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005555/0.2985, allocations: 83.89 kB / 434.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001633/0.2987, allocations: 28.84 kB / 434.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.2988, allocations: 16.14 kB / 434.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004089/0.2992, allocations: 0.5484 MB / 435.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.2992, allocations: 4.031 kB / 435.5 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.3003, allocations: 0.5408 MB / 436 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.3005, allocations: 116.7 kB / 436.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.798e-05/0.3005, allocations: 8 kB / 436.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.3008, allocations: 8 kB / 436.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.127e-05/0.3009, allocations: 27.97 kB / 436.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.3009, allocations: 8 kB / 436.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.3013, allocations: 223.1 kB / 436.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3013, allocations: 0 / 436.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000547/0.3018, allocations: 120.1 kB / 436.5 MB, free: 5.41 MB / 350.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.0001638/0.302, allocations: 122.2 kB / 436.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.3026, allocations: 312.6 kB / 436.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.3026, allocations: 0 / 436.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.303, allocations: 145.2 kB / 437.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.3035, allocations: 69.23 kB / 437.1 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.3059, allocations: 1.568 MB / 438.7 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000516/0.3064, allocations: 0.9248 MB / 439.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000158/0.3066, allocations: 51.27 kB / 439.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.61e-05/0.3067, allocations: 35.38 kB / 439.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3067, allocations: 0 / 439.7 MB, free: 2.125 MB / 350.1 MB Notification: Performance of Templates: time 0.009336/0.316, allocations: 3.84 MB / 443.6 MB, free: 14.32 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches