Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001319/0.001319, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.001367/0.001367, allocations: 186.5 kB / 23.71 MB, free: 4.434 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.409/1.409, allocations: 225.7 MB / 252.5 MB, free: 12.86 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_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001711/0.001711, allocations: 51.92 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2524, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01141/0.2638, allocations: 8.451 MB / 431 MB, free: 5.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006221/0.27, allocations: 2.913 MB / 434 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000973/0.271, allocations: 31.81 kB / 434 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.2726, allocations: 0.5667 MB / 434.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001374/0.274, allocations: 0.5854 MB / 435.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000644/0.2746, allocations: 319.5 kB / 435.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001986/0.2766, allocations: 1.762 MB / 437.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007044/0.2773, allocations: 421.4 kB / 437.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008901/0.2782, allocations: 0.685 MB / 438.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008741/0.2791, allocations: 0.6412 MB / 439 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002159/0.2793, allocations: 168 kB / 439.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003993/0.2797, allocations: 196 kB / 439.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.28, allocations: 338.8 kB / 439.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00068/0.2806, allocations: 0.6572 MB / 440.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.2828, allocations: 2 MB / 442.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2828, allocations: 0 / 442.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2828, allocations: 0 / 442.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.682e-05/0.2829, allocations: 0 / 442.3 MB, free: 10.57 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003246/0.2861, allocations: 1.759 MB / 444.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.2861, allocations: 12.03 kB / 444.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/0.2864, allocations: 164.9 kB / 444.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005844/0.2869, allocations: 211.9 kB / 444.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.2884, allocations: 0.764 MB / 445.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.2886, allocations: 171.8 kB / 445.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.2888, allocations: 115.9 kB / 445.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/0.291, allocations: 1.565 MB / 447 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.187e-05/0.291, allocations: 7.938 kB / 447.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.853e-05/0.2911, allocations: 48 kB / 447.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/0.2911, allocations: 28 kB / 447.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.2928, allocations: 0.7573 MB / 447.9 MB, free: 4.668 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006247/0.299, allocations: 3.364 MB / 451.2 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.3006, allocations: 0.5438 MB / 451.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005074/0.3011, allocations: 252 kB / 452 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.3011, allocations: 8.5 kB / 452 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006705/0.3018, allocations: 319.9 kB / 452.4 MB, free: 4 kB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 3.387e-06/0.3018, allocations: 0 / 452.4 MB, free: 4 kB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.00485/0.3067, allocations: 1.861 MB / 454.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004032/0.3071, allocations: 475.3 kB / 454.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.3088, allocations: 1.129 MB / 455.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.406e-05/0.3089, allocations: 41.7 kB / 455.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006901/0.3096, allocations: 0.6676 MB / 456.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.3098, allocations: 242 kB / 456.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.3101, allocations: 206.8 kB / 457 MB, free: 11.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3102, allocations: 341.9 kB / 457.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006209/0.3109, allocations: 301.9 kB / 457.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.3121, allocations: 1.169 MB / 458.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.3137, allocations: 0.9489 MB / 459.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3137, allocations: 4 kB / 459.7 MB, free: 7.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002309/0.316, allocations: 1.189 MB / 460.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.133e-05/0.3161, allocations: 71.39 kB / 461 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.3161, allocations: 20.02 kB / 461 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006058/0.3167, allocations: 161.6 kB / 461.1 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007446/0.3174, allocations: 203.6 kB / 461.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004783/0.3222, allocations: 3.644 MB / 465 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001341/0.3236, allocations: 63.88 kB / 465.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-05/0.3237, allocations: 48.14 kB / 465.1 MB, free: 2.293 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006302/0.3243, allocations: 297.6 kB / 465.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.3246, allocations: 127.2 kB / 465.5 MB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.3262, allocations: 0.7021 MB / 466.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.3262, allocations: 7.984 kB / 466.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.3263, allocations: 16.05 kB / 466.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001571/0.3278, allocations: 0.9473 MB / 467.2 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/0.3312, allocations: 1.604 MB / 468.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.3313, allocations: 4 kB / 468.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004861/0.3317, allocations: 108 kB / 468.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.3322, allocations: 137 kB / 469 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.722e-05/0.3322, allocations: 12 kB / 469 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004113/0.3363, allocations: 3.35 MB / 472.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3363, allocations: 224 / 472.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002152/0.3385, allocations: 1.061 MB / 473.5 MB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005539/0.339, allocations: 175.2 kB / 473.6 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.3392, allocations: 23.98 kB / 473.6 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.3398, allocations: 39.97 kB / 473.7 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3399, allocations: 60.45 kB / 473.7 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.99e-05/0.34, allocations: 23.98 kB / 473.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.3411, allocations: 0.7445 MB / 474.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3411, allocations: 0 / 474.5 MB, free: 8.387 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001191/0.3423, allocations: 312 kB / 474.8 MB, free: 8.082 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002714/0.345, allocations: 1.631 MB / 476.5 MB, free: 6.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002335/0.3474, allocations: 1.121 MB / 477.6 MB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3474, allocations: 1.875 kB / 477.6 MB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009972/0.3484, allocations: 0.5392 MB / 478.1 MB, free: 4.645 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/0.3501, allocations: 324.2 kB / 478.4 MB, free: 4.328 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.3662, allocations: 9.982 MB / 488.4 MB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005717/0.3667, allocations: 0.4974 MB / 488.9 MB, free: 9.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000637/0.3674, allocations: 149.8 kB / 489.1 MB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006052/0.368, allocations: 475.2 kB / 489.5 MB, free: 8.602 MB / 398.1 MB Notification: Performance of SimCode: time 1.663e-06/0.368, allocations: 0 / 489.5 MB, free: 8.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08223/0.4502, allocations: 31.63 MB / 0.5089 GB, free: 9.465 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.5, allocations: 3.266 kB / 0.5089 GB, free: 9.465 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv --start-time 0 --stop-time 25 --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_Cooling.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.csv failed! " [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 25.749389663804322]