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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8715/0.8715, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.932e-05/2.094e-05, allocations: 6.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004353/0.004374, allocations: 4.807 MB / 323.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00259/0.006964, allocations: 2.001 MB / 325.2 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.007482, allocations: 47.62 kB / 325.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006428/0.008125, allocations: 210.1 kB / 325.5 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003438/0.008469, allocations: 186.2 kB / 325.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.009179, allocations: 398.9 kB / 326.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007387/0.009918, allocations: 1.036 MB / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000455/0.01037, allocations: 397.6 kB / 327.5 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004572/0.01083, allocations: 0.5185 MB / 328 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.01109, allocations: 267.2 kB / 328.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.401e-05/0.01117, allocations: 92 kB / 328.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.01136, allocations: 147.8 kB / 328.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001314/0.01149, allocations: 207.3 kB / 328.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.01168, allocations: 291.3 kB / 329 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008576/0.01254, allocations: 1.191 MB / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.01255, allocations: 0 / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01255, allocations: 0 / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.01256, allocations: 0 / 330.2 MB, free: 10.54 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.0011/0.01366, allocations: 0.9797 MB / 331.2 MB, free: 9.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.01371, allocations: 8.922 kB / 331.2 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.01383, allocations: 139.4 kB / 331.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.01393, allocations: 96.38 kB / 331.4 MB, free: 9.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006112/0.01455, allocations: 451.6 kB / 331.8 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.01459, allocations: 66.38 kB / 331.9 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.01467, allocations: 88.33 kB / 332 MB, free: 8.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.01588, allocations: 0.801 MB / 332.8 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.874e-05/0.01591, allocations: 12.12 kB / 332.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.01595, allocations: 36.12 kB / 332.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.01596, allocations: 28 kB / 332.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006375/0.0166, allocations: 495.6 kB / 333.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.01881, allocations: 2.582 MB / 335.9 MB, free: 4.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004595/0.01927, allocations: 210.2 kB / 336.1 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.01939, allocations: 92.83 kB / 336.2 MB, free: 4.258 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001223/0.01951, allocations: 27.98 kB / 336.2 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.01953, allocations: 34.5 kB / 336.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.274e-06/0.01954, allocations: 0 / 336.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001646/0.02118, allocations: 1.111 MB / 337.4 MB, free: 3.016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.02122, allocations: 55.41 kB / 337.4 MB, free: 2.949 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.02144, allocations: 316.4 kB / 337.8 MB, free: 2.633 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.02146, allocations: 33.7 kB / 337.8 MB, free: 2.594 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.02163, allocations: 407.7 kB / 338.2 MB, free: 2.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.613e-05/0.02169, allocations: 138.8 kB / 338.3 MB, free: 2.055 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.203e-05/0.02178, allocations: 90.14 kB / 338.4 MB, free: 1.961 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.906e-05/0.02187, allocations: 350.7 kB / 338.8 MB, free: 1.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000128/0.022, allocations: 105 kB / 338.9 MB, free: 1.508 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001959/0.0222, allocations: 254 kB / 339.1 MB, free: 1.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006638/0.02286, allocations: 392.7 kB / 339.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.02287, allocations: 7.938 kB / 339.5 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004751/0.02334, allocations: 457.4 kB / 339.9 MB, free: 288 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.02336, allocations: 8 kB / 340 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.02337, allocations: 7.984 kB / 340 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.02355, allocations: 32.84 kB / 340 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.02374, allocations: 111.8 kB / 340.1 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000289/0.02403, allocations: 0.5567 MB / 340.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.02414, allocations: 20.06 kB / 340.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.02417, allocations: 24 kB / 340.7 MB, free: 15.5 MB / 314.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 (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.0002086/0.02438, allocations: 221.6 kB / 340.9 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.02441, allocations: 39.77 kB / 341 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003875/0.0248, allocations: 321.1 kB / 341.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.0248, allocations: 4 kB / 341.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.02481, allocations: 3.984 kB / 341.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.02481, allocations: 4 kB / 341.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008913/0.02571, allocations: 0.9645 MB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.02571, allocations: 4 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/0.0259, allocations: 79.91 kB / 342.3 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.156e-05/0.02599, allocations: 28.84 kB / 342.4 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.02601, allocations: 11.98 kB / 342.4 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002261/0.02624, allocations: 0.5486 MB / 342.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.02624, allocations: 11.95 kB / 342.9 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004723/0.02671, allocations: 0.5409 MB / 343.5 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.873e-05/0.02675, allocations: 47.69 kB / 343.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.775e-05/0.02678, allocations: 8 kB / 343.5 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.427e-05/0.02685, allocations: 8 kB / 343.5 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.0269, allocations: 23.95 kB / 343.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.02691, allocations: 8.188 kB / 343.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001419/0.02705, allocations: 219.1 kB / 343.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02705, allocations: 3.938 kB / 343.8 MB, free: 12.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.02738, allocations: 116 kB / 343.9 MB, free: 12.15 MB / 314.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 (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.0007722/0.02815, allocations: 1.104 MB / 345 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004153/0.02857, allocations: 288 kB / 345.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.02857, allocations: 3.938 kB / 345.3 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.02872, allocations: 135.8 kB / 345.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.02907, allocations: 66.67 kB / 345.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.0329, allocations: 4.182 MB / 349.7 MB, free: 6.102 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.03313, allocations: 325.6 kB / 350 MB, free: 5.754 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001215/0.03325, allocations: 50.08 kB / 350 MB, free: 5.707 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/0.03345, allocations: 240.4 kB / 350.3 MB, free: 5.473 MB / 314.7 MB Notification: Performance of SimCode: time 8.42e-07/0.03345, allocations: 0 / 350.3 MB, free: 5.473 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.05634, allocations: 9.053 MB / 359.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/7.712, allocations: 0 / 359.3 MB, free: 12.6 MB / 330.7 MB " [Timeout remaining time 652] (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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable directInertia.inertia.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.446543633937836]