Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001441/0.001441, allocations: 105.5 kB / 20.43 MB, free: 1.473 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.001483/0.001483, allocations: 188.3 kB / 23.72 MB, free: 4.719 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.41/1.41, allocations: 225.6 MB / 252.5 MB, free: 13.04 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.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 370.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2944, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009243/0.3036, allocations: 7.203 MB / 429.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.3078, allocations: 2.349 MB / 432.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006942/0.3085, allocations: 23.88 kB / 432.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.3099, allocations: 0.5204 MB / 432.7 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.3109, allocations: 405 kB / 433.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000432/0.3114, allocations: 207.8 kB / 433.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00132/0.3127, allocations: 1.21 MB / 434.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005544/0.3132, allocations: 337.5 kB / 434.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006261/0.3139, allocations: 478.1 kB / 435.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000657/0.3145, allocations: 0.4978 MB / 435.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001436/0.3147, allocations: 112 kB / 435.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003089/0.315, allocations: 156 kB / 436.1 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001934/0.3152, allocations: 235.1 kB / 436.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005075/0.3157, allocations: 0.5404 MB / 436.9 MB, free: 308 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001685/0.3174, allocations: 1.436 MB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3174, allocations: 0 / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3174, allocations: 0 / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.859e-05/0.3174, allocations: 0 / 438.3 MB, free: 14.86 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002152/0.3195, allocations: 1.201 MB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3196, allocations: 8.031 kB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.3197, allocations: 135.1 kB / 439.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004752/0.3202, allocations: 144.2 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.3213, allocations: 0.5804 MB / 440.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.3214, allocations: 62.38 kB / 440.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3215, allocations: 88.08 kB / 440.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.3228, allocations: 0.7715 MB / 441.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.3228, allocations: 11.94 kB / 441.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-05/0.3229, allocations: 36 kB / 441.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.3229, allocations: 20 kB / 441.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.3239, allocations: 0.5153 MB / 441.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/0.3283, allocations: 3.278 MB / 445.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005162/0.3288, allocations: 222.5 kB / 445.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.3291, allocations: 104.8 kB / 445.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.3291, allocations: 4 kB / 445.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.3291, allocations: 30.56 kB / 445.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.3291, allocations: 0 / 445.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002215/0.3314, allocations: 0.9087 MB / 446.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.3314, allocations: 81.34 kB / 446.5 MB, free: 6.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.3325, allocations: 0.7427 MB / 447.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.3325, allocations: 29.7 kB / 447.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004254/0.3329, allocations: 0.5035 MB / 447.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.249e-05/0.333, allocations: 111.1 kB / 447.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.3332, allocations: 114.2 kB / 448 MB, free: 4.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.3334, allocations: 378.8 kB / 448.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.3337, allocations: 121.2 kB / 448.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005124/0.3342, allocations: 422.2 kB / 448.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007918/0.335, allocations: 0.5755 MB / 449.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.335, allocations: 8 kB / 449.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001098/0.3361, allocations: 0.6114 MB / 450.1 MB, free: 2.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.3361, allocations: 12 kB / 450.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3361, allocations: 8 kB / 450.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001739/0.3363, allocations: 36.84 kB / 450.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.3367, allocations: 135.8 kB / 450.3 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.3379, allocations: 1.291 MB / 451.6 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.3384, allocations: 36.14 kB / 451.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.3384, allocations: 32 kB / 451.6 MB, free: 0.7305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003659/0.3388, allocations: 237.5 kB / 451.9 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3389, allocations: 79.48 kB / 451.9 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006768/0.3396, allocations: 325.7 kB / 452.3 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3396, allocations: 8 kB / 452.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3396, allocations: 0 / 452.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3396, allocations: 0 / 452.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.3413, allocations: 1.066 MB / 453.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3413, allocations: 0 / 453.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.3416, allocations: 63.84 kB / 453.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.3417, allocations: 20.84 kB / 453.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.3417, allocations: 8 kB / 453.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.3428, allocations: 1.272 MB / 454.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3428, allocations: 0 / 454.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009426/0.3437, allocations: 0.5664 MB / 455.3 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.3439, allocations: 95.53 kB / 455.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.344, allocations: 8.094 kB / 455.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.3443, allocations: 27.97 kB / 455.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.757e-05/0.3444, allocations: 31.83 kB / 455.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.3444, allocations: 8 kB / 455.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007257/0.3452, allocations: 0.5029 MB / 455.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3452, allocations: 0 / 455.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007235/0.3459, allocations: 163.9 kB / 456.1 MB, free: 12.01 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * 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): 1 system {(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.001364/0.3472, allocations: 1.113 MB / 457.2 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009343/0.3482, allocations: 441.3 kB / 457.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3482, allocations: 4 kB / 457.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000378/0.3486, allocations: 242.4 kB / 457.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009009/0.3495, allocations: 194.6 kB / 458.1 MB, free: 9.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008999/0.3585, allocations: 6.275 MB / 464.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005967/0.3591, allocations: 0.9409 MB / 465.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003309/0.3594, allocations: 90.02 kB / 465.4 MB, free: 2.223 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.3598, allocations: 307.3 kB / 465.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of SimCode: time 9.91e-07/0.3598, allocations: 0 / 465.7 MB, free: 1.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05521/0.415, allocations: 15.94 MB / 481.6 MB, free: 2.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.54, allocations: 15.73 kB / 481.6 MB, free: 2.199 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.418883100999665]