Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001817/0.001817, allocations: 107.1 kB / 20.44 MB, free: 1.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.002313/0.002313, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 51.92 kB / 377.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2727, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01451/0.2872, allocations: 10.57 MB / 441.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008888/0.2961, allocations: 3.129 MB / 444.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.2989, allocations: 43.81 kB / 444.8 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002356/0.3013, allocations: 0.6401 MB / 445.5 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00311/0.3044, allocations: 0.7871 MB / 446.3 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.3056, allocations: 403.6 kB / 446.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003895/0.3095, allocations: 2.413 MB / 449.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.3107, allocations: 0.65 MB / 449.7 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001605/0.3124, allocations: 0.9456 MB / 450.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.3136, allocations: 0.9839 MB / 451.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003256/0.314, allocations: 232 kB / 451.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000549/0.3145, allocations: 264 kB / 452.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003799/0.3149, allocations: 458.3 kB / 452.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009749/0.3159, allocations: 0.8711 MB / 453.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003486/0.3193, allocations: 2.86 MB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.3194, allocations: 4 kB / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3194, allocations: 0 / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.799e-05/0.3194, allocations: 0 / 456.3 MB, free: 13.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004137/0.3236, allocations: 2.137 MB / 458.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3236, allocations: 12.03 kB / 458.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002773/0.3239, allocations: 224.1 kB / 458.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009028/0.3248, allocations: 287.5 kB / 459 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/0.3269, allocations: 1.052 MB / 460 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.894e-05/0.327, allocations: 123.2 kB / 460.1 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002516/0.3272, allocations: 163.8 kB / 460.3 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.33, allocations: 1.612 MB / 461.9 MB, free: 7.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.005e-05/0.33, allocations: 4 kB / 461.9 MB, free: 7.469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001662/0.3302, allocations: 64 kB / 462 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.53e-05/0.3302, allocations: 36 kB / 462 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/0.3324, allocations: 1.045 MB / 463.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009353/0.3417, allocations: 5.637 MB / 468.7 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.3433, allocations: 0.5703 MB / 469.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.3442, allocations: 430.4 kB / 469.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.112e-05/0.3443, allocations: 8.656 kB / 469.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.676e-05/0.3443, allocations: 51.09 kB / 469.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 5.009e-06/0.3443, allocations: 4 kB / 469.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005437/0.3498, allocations: 2.162 MB / 471.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.53e-05/0.3499, allocations: 115.5 kB / 472 MB, free: 12.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.352, allocations: 1.333 MB / 473.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.316e-05/0.352, allocations: 37.7 kB / 473.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008556/0.3529, allocations: 0.8672 MB / 474.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000257/0.3532, allocations: 281.6 kB / 474.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003311/0.3535, allocations: 202.8 kB / 474.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3537, allocations: 353.9 kB / 475.1 MB, free: 9.883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.3544, allocations: 278.5 kB / 475.4 MB, free: 9.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.3554, allocations: 0.7965 MB / 476.1 MB, free: 8.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.3571, allocations: 1.084 MB / 477.2 MB, free: 7.297 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.3571, allocations: 8 kB / 477.2 MB, free: 7.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003421/0.3606, allocations: 1.268 MB / 478.5 MB, free: 6.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.3606, allocations: 12 kB / 478.5 MB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.32e-05/0.3606, allocations: 16 kB / 478.5 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006913/0.3613, allocations: 130.8 kB / 478.7 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009057/0.3622, allocations: 259.5 kB / 478.9 MB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004765/0.367, allocations: 4.309 MB / 483.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.3684, allocations: 55.92 kB / 483.3 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.3686, allocations: 59.97 kB / 483.3 MB, free: 0.8203 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0007942/0.3694, allocations: 349.4 kB / 483.7 MB, free: 480 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.3696, allocations: 147.1 kB / 483.8 MB, free: 332 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.3715, allocations: 0.8258 MB / 484.6 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/0.3715, allocations: 15.94 kB / 484.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3715, allocations: 0 / 484.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.3715, allocations: 3.984 kB / 484.7 MB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004209/0.3757, allocations: 2.122 MB / 486.8 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.3758, allocations: 8.031 kB / 486.8 MB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006033/0.3764, allocations: 123.8 kB / 486.9 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004793/0.3768, allocations: 146.3 kB / 487.1 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.709e-05/0.3769, allocations: 23.92 kB / 487.1 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004648/0.3815, allocations: 4.461 MB / 491.5 MB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.3815, allocations: 7.938 kB / 491.6 MB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002585/0.3841, allocations: 1.297 MB / 492.9 MB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006323/0.3848, allocations: 207 kB / 493.1 MB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.3849, allocations: 16 kB / 493.1 MB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.3855, allocations: 47.95 kB / 493.1 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3857, allocations: 64.28 kB / 493.2 MB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.3857, allocations: 23.98 kB / 493.2 MB, free: 6.383 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.3871, allocations: 0.8781 MB / 494.1 MB, free: 5.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3871, allocations: 0 / 494.1 MB, free: 5.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001245/0.3884, allocations: 335.9 kB / 494.4 MB, free: 5.176 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002904/0.3913, allocations: 1.892 MB / 496.3 MB, free: 3.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.3933, allocations: 1.084 MB / 497.4 MB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/0.3933, allocations: 0 / 497.4 MB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001121/0.3945, allocations: 0.6962 MB / 498.1 MB, free: 1.352 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.3963, allocations: 360.7 kB / 498.4 MB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/0.4163, allocations: 11.71 MB / 0.4982 GB, free: 4.594 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007428/0.4171, allocations: 0.6341 MB / 0.4988 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007411/0.4178, allocations: 175.6 kB / 0.499 GB, free: 3.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009444/0.4187, allocations: 0.6086 MB / 0.4996 GB, free: 3.141 MB / 414.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4187, allocations: 0 / 0.4996 GB, free: 3.141 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08846/0.5072, allocations: 34.07 MB / 0.5328 GB, free: 1.496 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.43, allocations: 7.188 kB / 0.5329 GB, free: 1.492 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia1.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.phi in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.11213956499705]