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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00148/0.00148, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.001461, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2691, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007255/0.2764, allocations: 5.444 MB / 414.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003878/0.2803, allocations: 2.138 MB / 416.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004694/0.2808, allocations: 35.81 kB / 416.4 MB, free: 9.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004654/0.2813, allocations: 210.2 kB / 416.6 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003308/0.2817, allocations: 174.4 kB / 416.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000882/0.2826, allocations: 403 kB / 417.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001124/0.2837, allocations: 1.021 MB / 418.2 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008943/0.2846, allocations: 0.6065 MB / 418.8 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005195/0.2851, allocations: 338.9 kB / 419.1 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004582/0.2856, allocations: 362.3 kB / 419.4 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.2857, allocations: 92 kB / 419.5 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.2861, allocations: 163.9 kB / 419.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.2863, allocations: 199.4 kB / 419.9 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.2867, allocations: 434 kB / 420.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001522/0.2883, allocations: 1.198 MB / 421.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2883, allocations: 0 / 421.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2883, allocations: 0 / 421.5 MB, free: 4.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.2883, allocations: 0 / 421.5 MB, free: 4.699 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.001546/0.2899, allocations: 1.052 MB / 422.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.2899, allocations: 8.031 kB / 422.6 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001686/0.2901, allocations: 135.4 kB / 422.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.2903, allocations: 108.4 kB / 422.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008542/0.2912, allocations: 0.5223 MB / 423.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.356e-05/0.2913, allocations: 70.31 kB / 423.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001417/0.2914, allocations: 88.33 kB / 423.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.293, allocations: 0.8085 MB / 424.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.293, allocations: 4 kB / 424.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.254e-05/0.2931, allocations: 36 kB / 424.3 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.2931, allocations: 20 kB / 424.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000977/0.2941, allocations: 0.4957 MB / 424.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003438/0.2976, allocations: 2.869 MB / 427.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/0.2982, allocations: 223.8 kB / 427.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.2984, allocations: 104.8 kB / 428 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/0.2986, allocations: 247.3 kB / 428.3 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.2987, allocations: 35.06 kB / 428.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.913e-06/0.2987, allocations: 0 / 428.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002483/0.3012, allocations: 1.278 MB / 429.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.3012, allocations: 59.41 kB / 429.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003534/0.3016, allocations: 313.7 kB / 430 MB, free: 11.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.3016, allocations: 29.7 kB / 430 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.3019, allocations: 407.7 kB / 430.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.3021, allocations: 142.8 kB / 430.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.3022, allocations: 86.22 kB / 430.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.3024, allocations: 350.7 kB / 431 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.3026, allocations: 113.1 kB / 431.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.303, allocations: 250.7 kB / 431.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000568/0.3035, allocations: 392.6 kB / 431.7 MB, free: 9.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3035, allocations: 4 kB / 431.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007662/0.3043, allocations: 461.3 kB / 432.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3044, allocations: 8 kB / 432.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3044, allocations: 4.594 kB / 432.2 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002102/0.3046, allocations: 40.84 kB / 432.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.3049, allocations: 107.8 kB / 432.3 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004493/0.3054, allocations: 0.5601 MB / 432.9 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.3056, allocations: 16 kB / 432.9 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.951e-05/0.3056, allocations: 24 kB / 432.9 MB, free: 8.656 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.0003106/0.3059, allocations: 217.8 kB / 433.1 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.84e-05/0.306, allocations: 43.64 kB / 433.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006083/0.3066, allocations: 314.4 kB / 433.5 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3067, allocations: 7.938 kB / 433.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3067, allocations: 0 / 433.5 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.3067, allocations: 3.984 kB / 433.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.3081, allocations: 1.016 MB / 434.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.3082, allocations: 7.984 kB / 434.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.3085, allocations: 75.91 kB / 434.6 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/0.3087, allocations: 33 kB / 434.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.3087, allocations: 15.98 kB / 434.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004153/0.3092, allocations: 0.5563 MB / 435.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3092, allocations: 0 / 435.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.3101, allocations: 0.5411 MB / 435.7 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.4e-05/0.3102, allocations: 112.9 kB / 435.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.997e-05/0.3102, allocations: 8 kB / 435.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.3104, allocations: 8 kB / 435.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.3105, allocations: 32 kB / 435.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.619e-05/0.3105, allocations: 15.94 kB / 435.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.3107, allocations: 215.4 kB / 436.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3107, allocations: 0 / 436.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.3112, allocations: 123.9 kB / 436.2 MB, free: 5.16 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.001206/0.3125, allocations: 1.112 MB / 437.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006098/0.3131, allocations: 299.9 kB / 437.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3131, allocations: 0 / 437.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.3134, allocations: 145 kB / 437.8 MB, free: 3.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.3139, allocations: 68.31 kB / 437.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00584/0.3197, allocations: 4.421 MB / 442.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006201/0.3204, allocations: 0.9171 MB / 443.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001613/0.3205, allocations: 50.66 kB / 443.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.3208, allocations: 243.4 kB / 443.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3209, allocations: 0 / 443.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.3579, allocations: 8.332 MB / 451.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.57, allocations: 64 / 451.8 MB, free: 5.457 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches