Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.001278/0.001278, 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 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.001439/0.001439, allocations: 215.9 kB / 23.73 MB, free: 4.16 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.408/1.408, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 47.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2553, allocations: 53.36 MB / 431.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01025/0.2655, allocations: 7.294 MB / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00492/0.2704, allocations: 2.556 MB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.2715, allocations: 31.81 kB / 441 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.2734, allocations: 0.517 MB / 441.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001726/0.2752, allocations: 0.5041 MB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008372/0.276, allocations: 283.6 kB / 442.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002316/0.2783, allocations: 1.505 MB / 443.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007502/0.2791, allocations: 373.2 kB / 444.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.2801, allocations: 0.5837 MB / 444.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.2811, allocations: 0.5284 MB / 445.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003255/0.2814, allocations: 140 kB / 445.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005279/0.282, allocations: 188 kB / 445.6 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002891/0.2823, allocations: 286.9 kB / 445.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008231/0.2831, allocations: 0.5483 MB / 446.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002158/0.2852, allocations: 1.778 MB / 448.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2852, allocations: 0 / 448.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2853, allocations: 0 / 448.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.309e-05/0.2853, allocations: 0 / 448.2 MB, free: 5.504 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003279/0.2886, allocations: 1.442 MB / 449.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.2886, allocations: 12.03 kB / 449.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002402/0.2889, allocations: 152.4 kB / 449.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008544/0.2897, allocations: 204 kB / 450 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001489/0.2912, allocations: 0.7046 MB / 450.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.989e-05/0.2913, allocations: 70 kB / 450.7 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.2914, allocations: 104 kB / 450.8 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.2932, allocations: 1.043 MB / 451.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.2933, allocations: 8 kB / 451.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.878e-05/0.2933, allocations: 39.94 kB / 451.9 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/0.2934, allocations: 24 kB / 452 MB, free: 1.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001284/0.2946, allocations: 0.6481 MB / 452.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005137/0.2998, allocations: 3.525 MB / 456.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006819/0.3005, allocations: 349.5 kB / 456.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.3011, allocations: 264.6 kB / 456.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.3011, allocations: 7.938 kB / 456.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.3011, allocations: 34.56 kB / 456.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.675e-06/0.3011, allocations: 4 kB / 456.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003013/0.3041, allocations: 1.334 MB / 458.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.3042, allocations: 85.11 kB / 458.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.3054, allocations: 0.8604 MB / 459.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.3054, allocations: 37.7 kB / 459.1 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004651/0.3059, allocations: 0.5736 MB / 459.7 MB, free: 9.574 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.306, allocations: 170.6 kB / 459.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.3062, allocations: 134.5 kB / 460 MB, free: 9.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3064, allocations: 333.9 kB / 460.3 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.3068, allocations: 177.9 kB / 460.5 MB, free: 8.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006322/0.3074, allocations: 0.4934 MB / 461 MB, free: 8.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3084, allocations: 0.6721 MB / 461.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.3085, allocations: 4 kB / 461.6 MB, free: 7.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001489/0.3099, allocations: 0.7875 MB / 462.4 MB, free: 6.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.31, allocations: 8 kB / 462.4 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.31, allocations: 12 kB / 462.4 MB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/0.3103, allocations: 81.56 kB / 462.5 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.3108, allocations: 159.7 kB / 462.7 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/0.3133, allocations: 2.923 MB / 465.6 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/0.3139, allocations: 44.16 kB / 465.6 MB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.314, allocations: 39.98 kB / 465.7 MB, free: 3.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003901/0.3144, allocations: 261.5 kB / 465.9 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.3145, allocations: 91.44 kB / 466 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000988/0.3155, allocations: 0.5032 MB / 466.5 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.3155, allocations: 8 kB / 466.5 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3155, allocations: 0 / 466.5 MB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3155, allocations: 3.984 kB / 466.5 MB, free: 2.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.3178, allocations: 1.334 MB / 467.9 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3178, allocations: 0 / 467.9 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.3181, allocations: 79.89 kB / 468 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002069/0.3183, allocations: 69.89 kB / 468 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.268e-05/0.3184, allocations: 12 kB / 468 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.3208, allocations: 2.916 MB / 470.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3208, allocations: 0 / 470.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.3223, allocations: 0.8096 MB / 471.8 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/0.3226, allocations: 127.4 kB / 471.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001288/0.3228, allocations: 15.92 kB / 471.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004435/0.3232, allocations: 27.98 kB / 471.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.706e-05/0.3233, allocations: 35.88 kB / 472 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.782e-05/0.3233, allocations: 23.98 kB / 472 MB, free: 12.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008653/0.3242, allocations: 0.5732 MB / 472.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3242, allocations: 4 kB / 472.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00086/0.325, allocations: 207.9 kB / 472.8 MB, free: 11.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001812/0.3269, allocations: 1.378 MB / 474.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.3282, allocations: 0.6823 MB / 474.8 MB, free: 9.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3282, allocations: 256 / 474.8 MB, free: 9.414 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007091/0.3289, allocations: 456.8 kB / 475.3 MB, free: 8.941 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.33, allocations: 222.3 kB / 475.5 MB, free: 8.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.3422, allocations: 7.472 MB / 483 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.3428, allocations: 430.4 kB / 483.4 MB, free: 380 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004613/0.3432, allocations: 103.3 kB / 483.5 MB, free: 272 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005579/0.3438, allocations: 395.4 kB / 483.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 1.362e-06/0.3438, allocations: 4 kB / 483.9 MB, free: 15.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06659/0.4104, allocations: 21.3 MB / 0.4933 GB, free: 10.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.49, allocations: 6.812 kB / 0.4933 GB, free: 10.93 MB / 414.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.588021086994559]