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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 230.5 MB / 254 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 67.89 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1271, allocations: 53.37 MB / 426.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007423/0.1345, allocations: 5.476 MB / 431.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005233/0.1397, allocations: 2.145 MB / 434 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.1407, allocations: 55.56 kB / 434 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000567/0.1413, allocations: 198.2 kB / 434.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004698/0.1418, allocations: 182.4 kB / 434.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.1428, allocations: 403 kB / 434.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.1439, allocations: 1.009 MB / 435.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007074/0.1446, allocations: 433.1 kB / 436.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005317/0.1452, allocations: 354.8 kB / 436.6 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004346/0.1456, allocations: 370.2 kB / 436.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.1457, allocations: 92 kB / 437 MB, free: 9.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002828/0.146, allocations: 156 kB / 437.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.1462, allocations: 203.3 kB / 437.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004076/0.1466, allocations: 434 kB / 437.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001338/0.148, allocations: 1.194 MB / 439 MB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.148, allocations: 0 / 439 MB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.148, allocations: 0 / 439 MB, free: 7.922 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.148, allocations: 0 / 439 MB, free: 7.922 MB / 366.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.001544/0.1495, allocations: 1.06 MB / 440 MB, free: 6.812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1496, allocations: 8.031 kB / 440.1 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/0.1497, allocations: 131.5 kB / 440.2 MB, free: 6.668 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002474/0.15, allocations: 108.4 kB / 440.3 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008014/0.1508, allocations: 0.5262 MB / 440.8 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.588e-05/0.1508, allocations: 62.38 kB / 440.9 MB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.151, allocations: 88.33 kB / 441 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.1524, allocations: 0.8084 MB / 441.8 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.092e-05/0.1524, allocations: 4 kB / 441.8 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/0.1525, allocations: 39.94 kB / 441.8 MB, free: 4.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.1525, allocations: 20 kB / 441.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009795/0.1535, allocations: 0.4957 MB / 442.3 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003308/0.1568, allocations: 2.865 MB / 445.2 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005432/0.1573, allocations: 209.1 kB / 445.4 MB, free: 1.238 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.1575, allocations: 101.2 kB / 445.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002358/0.1578, allocations: 247.3 kB / 445.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1578, allocations: 42.56 kB / 445.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.1578, allocations: 0 / 445.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.2274/0.3852, allocations: 1.261 MB / 447 MB, free: 24.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.3852, allocations: 55.88 kB / 447.1 MB, free: 24.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004719/0.3857, allocations: 312.9 kB / 447.4 MB, free: 23.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.3857, allocations: 30.88 kB / 447.4 MB, free: 23.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.386, allocations: 410.6 kB / 447.8 MB, free: 23.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.972e-05/0.3861, allocations: 142.2 kB / 448 MB, free: 23.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.3862, allocations: 82.78 kB / 448.1 MB, free: 23.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.3863, allocations: 353.8 kB / 448.4 MB, free: 23.28 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.3865, allocations: 105.6 kB / 448.5 MB, free: 23.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.3867, allocations: 252.6 kB / 448.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004585/0.3872, allocations: 393.3 kB / 449.1 MB, free: 22.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3872, allocations: 1.094 kB / 449.1 MB, free: 22.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007364/0.3879, allocations: 460.8 kB / 449.6 MB, free: 22.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.388, allocations: 6.531 kB / 449.6 MB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.388, allocations: 8.156 kB / 449.6 MB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002295/0.3882, allocations: 35.47 kB / 449.6 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.3886, allocations: 111.7 kB / 449.7 MB, free: 22.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003065/0.3889, allocations: 0.5571 MB / 450.3 MB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.3891, allocations: 17.97 kB / 450.3 MB, free: 22.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.714e-05/0.3891, allocations: 26.06 kB / 450.3 MB, free: 22.36 MB / 366.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.0002865/0.3894, allocations: 224.2 kB / 450.6 MB, free: 22.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/0.3895, allocations: 37.52 kB / 450.6 MB, free: 22.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006077/0.3901, allocations: 314.5 kB / 450.9 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3901, allocations: 7.531 kB / 450.9 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3901, allocations: 2.25 kB / 450.9 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.3901, allocations: 9.094 kB / 450.9 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.3916, allocations: 1.011 MB / 451.9 MB, free: 21.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3916, allocations: 1.125 kB / 451.9 MB, free: 21.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.3919, allocations: 86.19 kB / 452 MB, free: 21.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.3921, allocations: 28.42 kB / 452 MB, free: 21.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.3921, allocations: 9.547 kB / 452.1 MB, free: 21.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002438/0.3923, allocations: 0.5465 MB / 452.6 MB, free: 20.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3923, allocations: 6.5 kB / 452.6 MB, free: 20.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007298/0.3931, allocations: 0.551 MB / 453.2 MB, free: 20.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.723e-05/0.3932, allocations: 107.1 kB / 453.3 MB, free: 20.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.3932, allocations: 21.59 kB / 453.3 MB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3934, allocations: 14.94 kB / 453.3 MB, free: 20.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.3934, allocations: 23.58 kB / 453.3 MB, free: 20.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.3934, allocations: 9.25 kB / 453.3 MB, free: 20.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002086/0.3937, allocations: 214 kB / 453.5 MB, free: 20.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3937, allocations: 1.406 kB / 453.5 MB, free: 20.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006078/0.3943, allocations: 122.6 kB / 453.7 MB, free: 20.33 MB / 366.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.0009781/0.3952, allocations: 1.113 MB / 454.8 MB, free: 19.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006457/0.3959, allocations: 286.6 kB / 455.1 MB, free: 19.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3959, allocations: 0 / 455.1 MB, free: 19.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.3962, allocations: 144.5 kB / 455.2 MB, free: 19.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005381/0.3967, allocations: 63.52 kB / 455.3 MB, free: 19.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006822/0.4035, allocations: 4.409 MB / 459.7 MB, free: 16.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.4041, allocations: 0.9202 MB / 460.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002103/0.4043, allocations: 50.61 kB / 460.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.4046, allocations: 244.8 kB / 460.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4046, allocations: 0 / 460.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04385/0.4485, allocations: 8.426 MB / 469.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.41, allocations: 1.375 kB / 469.3 MB, free: 13.83 MB / 366.1 MB " [Timeout remaining time 647] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable directInertia.inertia.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.011387691018172]