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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002149/0.002149, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002959/0.002959, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.286/2.286, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 59.81 kB / 300.7 MB, free: 5.703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1859, allocations: 49.44 MB / 350.2 MB, free: 4.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.01295/0.1989, allocations: 5.425 MB / 355.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007213/0.2062, allocations: 2.075 MB / 357.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001902/0.2081, allocations: 39.75 kB / 357.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009329/0.2091, allocations: 206.2 kB / 357.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.2102, allocations: 170.4 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001749/0.212, allocations: 383.1 kB / 358.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002062/0.2141, allocations: 1.021 MB / 359.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.2155, allocations: 0.6026 MB / 360.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007698/0.2162, allocations: 338.8 kB / 360.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006925/0.217, allocations: 358.3 kB / 360.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.2172, allocations: 92 kB / 360.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004517/0.2176, allocations: 159.9 kB / 361 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.2179, allocations: 199.4 kB / 361.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006478/0.2186, allocations: 433.9 kB / 361.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.2205, allocations: 1.153 MB / 362.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.2205, allocations: 0 / 362.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2205, allocations: 0 / 362.8 MB, free: 7.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.727e-05/0.2206, allocations: 0 / 362.8 MB, free: 7.566 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.002466/0.2231, allocations: 1.033 MB / 363.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.2231, allocations: 8.031 kB / 363.8 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002328/0.2234, allocations: 135.4 kB / 363.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.2236, allocations: 91.91 kB / 364 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.2248, allocations: 498.7 kB / 364.5 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.169e-05/0.2249, allocations: 62.38 kB / 364.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.2252, allocations: 92.27 kB / 364.7 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.2276, allocations: 0.8084 MB / 365.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.454e-05/0.2277, allocations: 7.906 kB / 365.5 MB, free: 4.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.2278, allocations: 36 kB / 365.5 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.272e-05/0.2279, allocations: 23.94 kB / 365.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001654/0.2296, allocations: 0.4957 MB / 366 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006423/0.236, allocations: 2.887 MB / 368.9 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.2371, allocations: 220.3 kB / 369.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.2374, allocations: 108.8 kB / 369.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004488/0.2379, allocations: 259.3 kB / 369.5 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.238, allocations: 30.56 kB / 369.5 MB, free: 476 kB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 4.167e-06/0.238, allocations: 0 / 369.5 MB, free: 476 kB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.2937/0.5316, allocations: 1.258 MB / 370.8 MB, free: 25.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.5317, allocations: 57.05 kB / 370.8 MB, free: 25.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005704/0.5323, allocations: 307.4 kB / 371.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.5324, allocations: 29.83 kB / 371.2 MB, free: 24.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003769/0.5327, allocations: 398 kB / 371.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001705/0.5329, allocations: 134.7 kB / 371.7 MB, free: 24.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/0.5331, allocations: 91.69 kB / 371.8 MB, free: 24.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.5333, allocations: 350.9 kB / 372.1 MB, free: 24.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.5337, allocations: 106.7 kB / 372.2 MB, free: 24.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.5342, allocations: 252.9 kB / 372.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008718/0.5351, allocations: 391 kB / 372.9 MB, free: 23.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.5351, allocations: 2.094 kB / 372.9 MB, free: 23.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001429/0.5365, allocations: 467.7 kB / 373.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.5366, allocations: 6.469 kB / 373.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.5366, allocations: 5.141 kB / 373.3 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004148/0.537, allocations: 34.33 kB / 373.4 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006064/0.5376, allocations: 112.5 kB / 373.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004904/0.5381, allocations: 0.5604 MB / 374 MB, free: 23.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/0.5386, allocations: 17 kB / 374 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.5387, allocations: 18.14 kB / 374.1 MB, free: 23.16 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.0006679/0.5393, allocations: 225.5 kB / 374.3 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.5395, allocations: 34.33 kB / 374.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009909/0.5405, allocations: 320.2 kB / 374.6 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5405, allocations: 2.812 kB / 374.6 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.5405, allocations: 1.062 kB / 374.6 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.5406, allocations: 7.156 kB / 374.6 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.5428, allocations: 1.018 MB / 375.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.766e-06/0.5428, allocations: 3.109 kB / 375.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005738/0.5434, allocations: 84.3 kB / 375.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002644/0.5437, allocations: 32.44 kB / 375.8 MB, free: 22.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.982e-05/0.5437, allocations: 8.797 kB / 375.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004019/0.5441, allocations: 0.5477 MB / 376.3 MB, free: 21.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5441, allocations: 6.062 kB / 376.3 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.5453, allocations: 0.547 MB / 376.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.5455, allocations: 115.2 kB / 377 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.848e-05/0.5456, allocations: 15.44 kB / 377 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.5459, allocations: 8.688 kB / 377 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.546, allocations: 24.69 kB / 377 MB, free: 21.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.895e-05/0.546, allocations: 8.859 kB / 377.1 MB, free: 21.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.5464, allocations: 210.1 kB / 377.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5464, allocations: 0 / 377.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001065/0.5475, allocations: 124.3 kB / 377.4 MB, free: 21.02 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.001556/0.5491, allocations: 1.102 MB / 378.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001192/0.5503, allocations: 318.5 kB / 378.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.5503, allocations: 4.062 kB / 378.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.5507, allocations: 146.5 kB / 378.9 MB, free: 20 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.5517, allocations: 72.81 kB / 379 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.5631, allocations: 4.412 MB / 383.4 MB, free: 16.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000815/0.564, allocations: 0.9205 MB / 384.3 MB, free: 16.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003615/0.5644, allocations: 43.3 kB / 384.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.5648, allocations: 244.6 kB / 384.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of SimCode: time 1.582e-06/0.5648, allocations: 0 / 384.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05807/0.6229, allocations: 8.074 MB / 392.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.63/19.25, allocations: 13.06 kB / 392.7 MB, free: 13.45 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/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