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.001308/0.001308, allocations: 107.5 kB / 20.44 MB, free: 1.348 MB / 14.72 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.001501/0.001501, allocations: 190.3 kB / 23.71 MB, free: 4.551 MB / 14.72 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 1.428/1.428, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001674/0.001674, allocations: 47.92 kB / 370.4 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2564, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006814/0.2632, allocations: 4.833 MB / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003692/0.2669, allocations: 1.99 MB / 429.4 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005767/0.2675, allocations: 51.56 kB / 429.4 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004866/0.2679, allocations: 206.2 kB / 429.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004105/0.2684, allocations: 178.4 kB / 429.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008794/0.2692, allocations: 387.1 kB / 430.2 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.2703, allocations: 1.013 MB / 431.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007109/0.2711, allocations: 397.4 kB / 431.6 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004616/0.2715, allocations: 350.8 kB / 431.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004517/0.272, allocations: 314.3 kB / 432.2 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.2721, allocations: 92 kB / 432.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002795/0.2724, allocations: 155.9 kB / 432.5 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002102/0.2726, allocations: 203.4 kB / 432.7 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003502/0.2729, allocations: 346.4 kB / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.2742, allocations: 1.196 MB / 434.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2742, allocations: 0 / 434.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2742, allocations: 0 / 434.2 MB, free: 2.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.2742, allocations: 0 / 434.2 MB, free: 2.664 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.001493/0.2757, allocations: 0.9805 MB / 435.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.2758, allocations: 12.03 kB / 435.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001581/0.2759, allocations: 135.5 kB / 435.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001475/0.2761, allocations: 88.38 kB / 435.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009422/0.277, allocations: 468.2 kB / 435.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.2771, allocations: 62.38 kB / 435.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.2772, allocations: 92.31 kB / 436 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.2787, allocations: 0.8007 MB / 436.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.268e-05/0.2787, allocations: 11.95 kB / 436.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.707e-05/0.2788, allocations: 32 kB / 436.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.2788, allocations: 20 kB / 436.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.2798, allocations: 0.4957 MB / 437.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/0.2835, allocations: 2.57 MB / 440 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.2841, allocations: 207 kB / 440.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.2843, allocations: 101.2 kB / 440.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/0.2844, allocations: 19.98 kB / 440.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.2844, allocations: 38.56 kB / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.414e-06/0.2844, allocations: 4 kB / 440.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002406/0.2868, allocations: 1.108 MB / 441.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.664e-05/0.2869, allocations: 55.41 kB / 441.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/0.2873, allocations: 316.3 kB / 441.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/0.2873, allocations: 33.64 kB / 441.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.2876, allocations: 419.7 kB / 442.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.2878, allocations: 138.8 kB / 442.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.2879, allocations: 86.14 kB / 442.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.2881, allocations: 350.7 kB / 442.8 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.2883, allocations: 105 kB / 442.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.2886, allocations: 253.4 kB / 443.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005772/0.2892, allocations: 396.8 kB / 443.5 MB, free: 8.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2892, allocations: 4 kB / 443.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007821/0.29, allocations: 449.7 kB / 444 MB, free: 8.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.29, allocations: 11.98 kB / 444 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.29, allocations: 4 kB / 444 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000209/0.2902, allocations: 40.78 kB / 444 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/0.2906, allocations: 103.9 kB / 444.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004708/0.2911, allocations: 0.5601 MB / 444.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.2913, allocations: 12 kB / 444.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.2913, allocations: 24.34 kB / 444.7 MB, free: 7.641 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.0003284/0.2917, allocations: 221.7 kB / 445 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.882e-05/0.2917, allocations: 43.7 kB / 445 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006361/0.2924, allocations: 328.4 kB / 445.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.2924, allocations: 7.984 kB / 445.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2924, allocations: 0 / 445.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2924, allocations: 0 / 445.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.294, allocations: 0.9526 MB / 446.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.294, allocations: 0 / 446.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/0.2943, allocations: 79.91 kB / 446.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.2944, allocations: 32.84 kB / 446.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.2945, allocations: 11.98 kB / 446.4 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004248/0.2949, allocations: 0.5601 MB / 447 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.2949, allocations: 8.188 kB / 447 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008529/0.2958, allocations: 0.545 MB / 447.5 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.2958, allocations: 39.75 kB / 447.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.721e-05/0.2959, allocations: 8 kB / 447.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.296, allocations: 8 kB / 447.6 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.179e-05/0.2961, allocations: 23.95 kB / 447.6 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.2961, allocations: 19.88 kB / 447.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002146/0.2963, allocations: 207.2 kB / 447.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2963, allocations: 3.938 kB / 447.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.2968, allocations: 127.9 kB / 447.9 MB, free: 4.277 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.001122/0.2979, allocations: 1.104 MB / 449 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005757/0.2985, allocations: 288.7 kB / 449.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2985, allocations: 0 / 449.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002562/0.2988, allocations: 131.8 kB / 449.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005004/0.2993, allocations: 65.34 kB / 449.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005903/0.3052, allocations: 4.401 MB / 453.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.3055, allocations: 325.6 kB / 454.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001557/0.3057, allocations: 43.34 kB / 454.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.306, allocations: 247.3 kB / 454.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.306, allocations: 0 / 454.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04184/0.3478, allocations: 8.912 MB / 463.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.25, allocations: 3.875 kB / 463.4 MB, free: 4.68 MB / 366.1 MB " [Timeout remaining time 647] (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/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) [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: 15.798824522644281]