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.001667/0.001667, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002058/0.002058, allocations: 212.7 kB / 23.73 MB, free: 4.164 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.467/1.467, allocations: 230.5 MB / 257.4 MB, free: 7.781 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.002366/0.002366, allocations: 63.91 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2897, allocations: 53.41 MB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007317/0.2971, allocations: 4.838 MB / 436 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004241/0.3013, allocations: 2.052 MB / 438 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008117/0.3021, allocations: 55.56 kB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005683/0.3027, allocations: 214.2 kB / 438.3 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005319/0.3032, allocations: 166.5 kB / 438.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001159/0.3044, allocations: 403 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001433/0.3058, allocations: 1.009 MB / 439.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.3065, allocations: 397.3 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007372/0.3072, allocations: 354.8 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.3077, allocations: 318.3 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001272/0.3078, allocations: 92 kB / 441 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003156/0.3082, allocations: 163.9 kB / 441.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.3084, allocations: 203.4 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004533/0.3088, allocations: 342.5 kB / 441.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.3103, allocations: 1.2 MB / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3103, allocations: 0 / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3103, allocations: 0 / 442.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.443e-05/0.3103, allocations: 0 / 442.9 MB, free: 10.64 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.001683/0.312, allocations: 0.9843 MB / 443.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.312, allocations: 15.98 kB / 443.9 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001634/0.3122, allocations: 127.5 kB / 444 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002738/0.3125, allocations: 104.4 kB / 444.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009185/0.3134, allocations: 468.2 kB / 444.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-05/0.3135, allocations: 66.38 kB / 444.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3136, allocations: 88.33 kB / 444.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.3151, allocations: 0.8046 MB / 445.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/0.3152, allocations: 4 kB / 445.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.034e-05/0.3152, allocations: 36 kB / 445.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.3153, allocations: 24 kB / 445.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.3163, allocations: 0.4918 MB / 446.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003569/0.3198, allocations: 2.578 MB / 448.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000597/0.3204, allocations: 218.4 kB / 448.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.3206, allocations: 100.8 kB / 449 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.3208, allocations: 19.98 kB / 449 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.3208, allocations: 35.06 kB / 449 MB, free: 4.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.044e-06/0.3208, allocations: 0 / 449 MB, free: 4.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002469/0.3233, allocations: 1.117 MB / 450.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.3233, allocations: 55.41 kB / 450.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.3237, allocations: 321.6 kB / 450.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3237, allocations: 29.7 kB / 450.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002954/0.324, allocations: 419.7 kB / 450.9 MB, free: 2.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.3241, allocations: 138.8 kB / 451.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.3242, allocations: 90.14 kB / 451.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3244, allocations: 350.7 kB / 451.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.3246, allocations: 105 kB / 451.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.3249, allocations: 250.1 kB / 451.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005689/0.3255, allocations: 400.6 kB / 452.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3255, allocations: 4 kB / 452.2 MB, free: 0.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007514/0.3263, allocations: 453.4 kB / 452.7 MB, free: 348 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3263, allocations: 8 kB / 452.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3263, allocations: 4 kB / 452.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.3265, allocations: 40.78 kB / 452.7 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003754/0.3269, allocations: 104.5 kB / 452.8 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004734/0.3273, allocations: 0.564 MB / 453.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.3275, allocations: 19.98 kB / 453.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.274e-05/0.3276, allocations: 20 kB / 453.4 MB, free: 15.55 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.0003139/0.3279, allocations: 226.5 kB / 453.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.779e-05/0.328, allocations: 43.7 kB / 453.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006284/0.3286, allocations: 322 kB / 454 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.3286, allocations: 4.062 kB / 454 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3286, allocations: 4 kB / 454 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3286, allocations: 0 / 454 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.3301, allocations: 0.9489 MB / 455 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3301, allocations: 0 / 455 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003587/0.3305, allocations: 87.89 kB / 455.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.3306, allocations: 28.84 kB / 455.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.3307, allocations: 8.156 kB / 455.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003935/0.3311, allocations: 0.5679 MB / 455.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3311, allocations: 0 / 455.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008682/0.3319, allocations: 0.5407 MB / 456.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.78e-05/0.332, allocations: 35.77 kB / 456.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.332, allocations: 8.188 kB / 456.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.3322, allocations: 8 kB / 456.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.3323, allocations: 31.98 kB / 456.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.3323, allocations: 16 kB / 456.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002664/0.3326, allocations: 219.2 kB / 456.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3326, allocations: 0 / 456.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006098/0.3332, allocations: 120 kB / 456.6 MB, free: 12.21 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.001321/0.3345, allocations: 1.109 MB / 457.8 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006511/0.3352, allocations: 292 kB / 458 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.3352, allocations: 4 kB / 458 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.3354, allocations: 133.3 kB / 458.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.336, allocations: 72.03 kB / 458.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006623/0.3426, allocations: 4.419 MB / 462.7 MB, free: 5.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.343, allocations: 333.6 kB / 463 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.3432, allocations: 46.47 kB / 463 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/0.3435, allocations: 243.3 kB / 463.3 MB, free: 5.297 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3435, allocations: 0 / 463.3 MB, free: 5.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04181/0.3853, allocations: 8.899 MB / 472.2 MB, free: 12.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.04, allocations: 15.84 kB / 472.2 MB, free: 12.55 MB / 382.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.602410450112075]