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.0007977/0.0007977, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007763/0.0007763, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.9137/0.9137, allocations: 173.4 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 1.252e-06/1.252e-06, allocations: 0 / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.47e-05, allocations: 2.281 kB / 318.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.005039/0.005054, allocations: 6.351 MB / 324.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.007329, allocations: 2.181 MB / 327 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.007622, allocations: 19.94 kB / 327 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008005/0.008422, allocations: 480.8 kB / 327.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004802/0.008903, allocations: 432.6 kB / 327.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.009132, allocations: 207.7 kB / 328.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007819/0.009914, allocations: 1.249 MB / 329.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003694/0.01028, allocations: 320.5 kB / 329.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005614/0.01085, allocations: 0.7014 MB / 330.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003323/0.01118, allocations: 358.9 kB / 330.7 MB, free: 9.996 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.363e-05/0.01127, allocations: 112 kB / 330.8 MB, free: 9.887 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000185/0.01146, allocations: 151.9 kB / 331 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.01158, allocations: 235.1 kB / 331.2 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.01184, allocations: 383.1 kB / 331.6 MB, free: 9.133 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.01289, allocations: 1.433 MB / 333 MB, free: 7.695 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.01289, allocations: 0 / 333 MB, free: 7.695 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.01289, allocations: 0 / 333 MB, free: 7.695 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.01291, allocations: 0 / 333 MB, free: 7.695 MB / 298.7 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.001374/0.01428, allocations: 1.193 MB / 334.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.01432, allocations: 12.92 kB / 334.2 MB, free: 6.457 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.01443, allocations: 127.1 kB / 334.3 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002879/0.01472, allocations: 152.2 kB / 334.5 MB, free: 6.176 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007232/0.01544, allocations: 0.5797 MB / 335.1 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.01548, allocations: 62.31 kB / 335.1 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.752e-05/0.01555, allocations: 84.33 kB / 335.2 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009038/0.01646, allocations: 0.8301 MB / 336 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.01648, allocations: 3.938 kB / 336 MB, free: 4.551 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.01653, allocations: 36 kB / 336.1 MB, free: 4.516 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.01654, allocations: 23.98 kB / 336.1 MB, free: 4.492 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006389/0.01718, allocations: 0.5114 MB / 336.6 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002474/0.01965, allocations: 3.04 MB / 339.6 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.01998, allocations: 218.5 kB / 339.9 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.02011, allocations: 108.8 kB / 340 MB, free: 416 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.02013, allocations: 4 kB / 340 MB, free: 412 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.02015, allocations: 34.56 kB / 340 MB, free: 368 kB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.183e-06/0.02015, allocations: 4 kB / 340 MB, free: 364 kB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.001255/0.02141, allocations: 0.8987 MB / 340.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.02146, allocations: 85.34 kB / 341 MB, free: 15.31 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006287/0.02209, allocations: 0.7542 MB / 341.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.0221, allocations: 33.7 kB / 341.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.02234, allocations: 0.4956 MB / 342.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.0224, allocations: 115.1 kB / 342.4 MB, free: 13.9 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.02253, allocations: 114.2 kB / 342.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.02265, allocations: 378.8 kB / 342.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.02284, allocations: 121.2 kB / 343 MB, free: 13.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.02312, allocations: 447.9 kB / 343.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004802/0.0236, allocations: 0.5755 MB / 344 MB, free: 11.99 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.02361, allocations: 4 kB / 344 MB, free: 11.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006366/0.02425, allocations: 0.6108 MB / 344.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.02427, allocations: 8 kB / 344.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.02428, allocations: 20.66 kB / 344.6 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.0244, allocations: 36.84 kB / 344.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.02464, allocations: 143.7 kB / 344.8 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007187/0.02536, allocations: 1.271 MB / 346.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.02558, allocations: 43.81 kB / 346.1 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.02561, allocations: 36.16 kB / 346.2 MB, free: 9.695 MB / 314.7 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.0001908/0.0258, allocations: 233.6 kB / 346.4 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.02586, allocations: 71.53 kB / 346.5 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003855/0.02624, allocations: 321.7 kB / 346.8 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.02625, allocations: 8.031 kB / 346.8 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.02625, allocations: 3.938 kB / 346.8 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.02626, allocations: 7.984 kB / 346.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009371/0.02719, allocations: 0.995 MB / 347.8 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.0272, allocations: 4 kB / 347.8 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.02734, allocations: 59.89 kB / 347.8 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.339e-05/0.02739, allocations: 25.08 kB / 347.9 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.02741, allocations: 11.98 kB / 347.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008384/0.02825, allocations: 1.263 MB / 349.1 MB, free: 6.484 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.02825, allocations: 4.031 kB / 349.2 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.02876, allocations: 0.557 MB / 349.7 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.02888, allocations: 99.53 kB / 349.8 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.02892, allocations: 8 kB / 349.8 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.02908, allocations: 23.97 kB / 349.8 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.02913, allocations: 23.91 kB / 349.9 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.02914, allocations: 11.94 kB / 349.9 MB, free: 5.719 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004293/0.02957, allocations: 0.5069 MB / 350.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02957, allocations: 0 / 350.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003861/0.02995, allocations: 167.9 kB / 350.5 MB, free: 5.055 MB / 314.7 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.0007825/0.03074, allocations: 1.113 MB / 351.7 MB, free: 3.891 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005099/0.03125, allocations: 436 kB / 352.1 MB, free: 3.453 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.03125, allocations: 0 / 352.1 MB, free: 3.453 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001938/0.03144, allocations: 240 kB / 352.3 MB, free: 3.207 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.03196, allocations: 186.4 kB / 352.5 MB, free: 3.031 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006069/0.03803, allocations: 6.219 MB / 358.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.03826, allocations: 348.7 kB / 359.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.03846, allocations: 90.02 kB / 359.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.03869, allocations: 300.4 kB / 359.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.03869, allocations: 0 / 359.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03321/0.07191, allocations: 16.97 MB / 376.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.52, allocations: 8 kB / 376.4 MB, free: 10.93 MB / 346.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/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] "" Variables in the reference:time,dcpm.la.i,loadInertia.phi,loadInertia.w Variables in the result:time,dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi [Calling sys.exit(0), Time elapsed: 9.671722276136279]