Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 120.4 kB / 17.79 MB, free: 5.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002042/0.002042, allocations: 203.3 kB / 20.74 MB, free: 2.398 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 51.91 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.2148/0.3216, allocations: 5.457 MB / 431.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.3253, allocations: 2.154 MB / 433.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008155/0.3261, allocations: 47.53 kB / 434 MB, free: 7.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004648/0.3266, allocations: 208 kB / 434.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003904/0.327, allocations: 178 kB / 434.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009331/0.3279, allocations: 404 kB / 434.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009712/0.3289, allocations: 1.01 MB / 435.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005805/0.3294, allocations: 424.8 kB / 436.2 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.3299, allocations: 356.8 kB / 436.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004162/0.3303, allocations: 366 kB / 436.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.3305, allocations: 92.75 kB / 437 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002966/0.3308, allocations: 162.7 kB / 437.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.3309, allocations: 200.8 kB / 437.3 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003399/0.3313, allocations: 444.5 kB / 437.7 MB, free: 5.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00183/0.3331, allocations: 1.186 MB / 438.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3331, allocations: 0.5625 kB / 438.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3331, allocations: 1.062 kB / 438.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.358e-05/0.3331, allocations: 0 / 438.9 MB, free: 5.414 MB / 350.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.001685/0.3348, allocations: 1.06 MB / 440 MB, free: 4.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.3349, allocations: 9.312 kB / 440 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.335, allocations: 136.5 kB / 440.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.3353, allocations: 100.2 kB / 440.2 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007392/0.336, allocations: 0.5228 MB / 440.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.336, allocations: 60.97 kB / 440.8 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.3362, allocations: 91.94 kB / 440.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.3375, allocations: 0.8019 MB / 441.7 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.3375, allocations: 15.62 kB / 441.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.3375, allocations: 31.81 kB / 441.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.3376, allocations: 24.81 kB / 441.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009365/0.3385, allocations: 0.4916 MB / 442.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003073/0.3416, allocations: 2.861 MB / 445.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.3421, allocations: 209.5 kB / 445.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.3423, allocations: 93.47 kB / 445.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.3424, allocations: 252.1 kB / 445.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.73e-05/0.3424, allocations: 43.78 kB / 445.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.973e-06/0.3424, allocations: 0 / 445.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002308/0.3447, allocations: 1.267 MB / 447 MB, free: 148 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.3448, allocations: 58.03 kB / 447 MB, free: 80 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.3451, allocations: 314.4 kB / 447.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.3452, allocations: 30.8 kB / 447.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002931/0.3455, allocations: 416.3 kB / 447.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3456, allocations: 138 kB / 447.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.3457, allocations: 85.39 kB / 448 MB, free: 15.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3459, allocations: 356.6 kB / 448.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.3461, allocations: 105.7 kB / 448.5 MB, free: 15.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.3465, allocations: 253.4 kB / 448.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000564/0.347, allocations: 393.4 kB / 449.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.347, allocations: 1.031 kB / 449.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007991/0.3478, allocations: 462.6 kB / 449.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3479, allocations: 7.688 kB / 449.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3479, allocations: 4.562 kB / 449.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002308/0.3481, allocations: 34.78 kB / 449.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.3484, allocations: 112.5 kB / 449.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004711/0.3489, allocations: 0.5573 MB / 450.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.3491, allocations: 16 kB / 450.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.3492, allocations: 22.44 kB / 450.3 MB, free: 13.71 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.0003651/0.3495, allocations: 217 kB / 450.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.267e-05/0.3496, allocations: 45.48 kB / 450.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006749/0.3503, allocations: 321.8 kB / 450.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3503, allocations: 3.656 kB / 450.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3503, allocations: 0 / 450.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3503, allocations: 5.453 kB / 450.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001746/0.3521, allocations: 1.018 MB / 451.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3521, allocations: 1.094 kB / 451.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.3524, allocations: 76.95 kB / 452 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001637/0.3526, allocations: 34.86 kB / 452 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.3526, allocations: 9.016 kB / 452 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004143/0.353, allocations: 0.5491 MB / 452.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.353, allocations: 5.844 kB / 452.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008763/0.3539, allocations: 0.5487 MB / 453.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.354, allocations: 108.4 kB / 453.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.3541, allocations: 9.078 kB / 453.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.3542, allocations: 8.531 kB / 453.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.3543, allocations: 31.36 kB / 453.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.3543, allocations: 19.02 kB / 453.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002741/0.3546, allocations: 213.2 kB / 453.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3546, allocations: 4 kB / 453.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006313/0.3552, allocations: 118.8 kB / 453.6 MB, free: 11.54 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.001285/0.3565, allocations: 1.116 MB / 454.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006857/0.3572, allocations: 288.9 kB / 455 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3572, allocations: 1.156 kB / 455 MB, free: 10.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.3575, allocations: 136.8 kB / 455.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00053/0.358, allocations: 75.75 kB / 455.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007607/0.3656, allocations: 4.411 MB / 459.6 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000741/0.3664, allocations: 0.9209 MB / 460.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.3666, allocations: 47.09 kB / 460.6 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.3669, allocations: 243.7 kB / 460.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3669, allocations: 0 / 460.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03718/0.4041, allocations: 8.418 MB / 469.2 MB, free: 2.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.29, allocations: 2.094 kB / 469.2 MB, free: 2.832 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable directInertia.inertia.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2a.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2a.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia2b.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia2b.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3a.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3a.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.phi in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.phi from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! Error: Could not read variable inertia3b.w in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv. Warning: Get data of variable inertia3b.w from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.83012893400155]