Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008687/0.0008687, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008626/0.0008626, allocations: 160.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9473/0.9473, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.501e-05/2.703e-05, allocations: 7.125 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.007206/0.007233, allocations: 8.474 MB / 333 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003843/0.01108, allocations: 2.956 MB / 336 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005483/0.01162, allocations: 31.81 kB / 336 MB, free: 4.355 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.01264, allocations: 0.5665 MB / 336.6 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007606/0.0134, allocations: 0.6123 MB / 337.2 MB, free: 3.168 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.0138, allocations: 315.4 kB / 337.5 MB, free: 2.859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.01504, allocations: 1.844 MB / 339.3 MB, free: 1.008 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005027/0.01554, allocations: 429.2 kB / 339.8 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009532/0.0165, allocations: 1.037 MB / 340.8 MB, free: 15.53 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004374/0.01693, allocations: 0.5413 MB / 341.3 MB, free: 14.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.01705, allocations: 160 kB / 341.5 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.01725, allocations: 203.9 kB / 341.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.01742, allocations: 334.7 kB / 342 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003584/0.01778, allocations: 0.5612 MB / 342.6 MB, free: 13.74 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.01898, allocations: 2.002 MB / 344.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.01899, allocations: 0 / 344.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01899, allocations: 0 / 344.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.019, allocations: 3.984 kB / 344.6 MB, free: 11.73 MB / 314.7 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.00179/0.02079, allocations: 1.755 MB / 346.3 MB, free: 9.918 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.02083, allocations: 15.98 kB / 346.4 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.02096, allocations: 161 kB / 346.5 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003127/0.02128, allocations: 207.9 kB / 346.7 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009092/0.02219, allocations: 0.7633 MB / 347.5 MB, free: 8.734 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.02231, allocations: 175.7 kB / 347.6 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.02242, allocations: 108.4 kB / 347.8 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.02367, allocations: 1.577 MB / 349.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.0237, allocations: 0 / 349.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.042e-05/0.02376, allocations: 48 kB / 349.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.02377, allocations: 24 kB / 349.4 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009379/0.02471, allocations: 0.7613 MB / 350.2 MB, free: 5.836 MB / 314.7 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.003291/0.028, allocations: 3.371 MB / 353.5 MB, free: 2.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008778/0.02888, allocations: 0.5435 MB / 354.1 MB, free: 1.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002888/0.02917, allocations: 242.7 kB / 354.3 MB, free: 1.512 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.0292, allocations: 8.5 kB / 354.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003879/0.02959, allocations: 319.9 kB / 354.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 1.763e-06/0.02959, allocations: 0 / 354.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of matching and sorting (n=65): time 0.002514/0.0321, allocations: 1.872 MB / 356.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.03225, allocations: 471.3 kB / 357 MB, free: 14.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009281/0.03318, allocations: 1.132 MB / 358.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.03322, allocations: 41.7 kB / 358.1 MB, free: 13.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.03356, allocations: 0.6522 MB / 358.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.03367, allocations: 242 kB / 359 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.03384, allocations: 198.8 kB / 359.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.03392, allocations: 341.9 kB / 359.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.03426, allocations: 301.9 kB / 359.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006468/0.03491, allocations: 1.165 MB / 361 MB, free: 10.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008103/0.03572, allocations: 0.9412 MB / 362 MB, free: 9.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.03572, allocations: 7.938 kB / 362 MB, free: 9.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001203/0.03692, allocations: 1.192 MB / 363.2 MB, free: 7.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.03696, allocations: 63.94 kB / 363.2 MB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.03697, allocations: 19.98 kB / 363.2 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.03732, allocations: 167.4 kB / 363.4 MB, free: 7.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003454/0.03766, allocations: 207.6 kB / 363.6 MB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.04016, allocations: 3.643 MB / 367.2 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.04055, allocations: 67.92 kB / 367.3 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.29e-05/0.0406, allocations: 48.14 kB / 367.4 MB, free: 3.469 MB / 330.7 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.0002705/0.04087, allocations: 297.5 kB / 367.7 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.04096, allocations: 135.1 kB / 367.8 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009084/0.04187, allocations: 0.706 MB / 368.5 MB, free: 2.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.04188, allocations: 8 kB / 368.5 MB, free: 2.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.04188, allocations: 0 / 368.5 MB, free: 2.305 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008333/0.04271, allocations: 0.9473 MB / 369.4 MB, free: 1.246 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/0.0444, allocations: 1.619 MB / 371.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.0444, allocations: 0 / 371.1 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.04464, allocations: 104.1 kB / 371.2 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002333/0.04487, allocations: 129.6 kB / 371.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.0449, allocations: 15.98 kB / 371.3 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.04693, allocations: 3.352 MB / 374.7 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.04693, allocations: 12.14 kB / 374.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001099/0.04803, allocations: 1.049 MB / 375.7 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.04827, allocations: 183.1 kB / 375.9 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.04834, allocations: 20 kB / 375.9 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/0.04865, allocations: 39.97 kB / 376 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.929e-05/0.04874, allocations: 56.39 kB / 376 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/0.04876, allocations: 23.94 kB / 376 MB, free: 10.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006531/0.04941, allocations: 0.7483 MB / 376.8 MB, free: 9.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04941, allocations: 0 / 376.8 MB, free: 9.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005989/0.05001, allocations: 311.9 kB / 377.1 MB, free: 9.242 MB / 346.7 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.001441/0.05145, allocations: 1.619 MB / 378.7 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001172/0.05263, allocations: 1.121 MB / 379.8 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.05263, allocations: 1.938 kB / 379.8 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.05313, allocations: 0.5354 MB / 380.4 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008237/0.05395, allocations: 329.3 kB / 380.7 MB, free: 5.508 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00945/0.0634, allocations: 9.886 MB / 390.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.06371, allocations: 0.4896 MB / 391.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003189/0.06403, allocations: 145.8 kB / 391.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003747/0.06441, allocations: 476.3 kB / 391.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of SimCode: time 7.72e-07/0.06441, allocations: 0 / 391.7 MB, free: 9.879 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04183/0.1062, allocations: 31.67 MB / 423.3 MB, free: 10.6 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.741/8.847, allocations: 12.03 kB / 423.4 MB, free: 10.59 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 653] Reference file matches [Calling sys.exit(0), Time elapsed: 23.69746047258377]