Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001269/0.001269, 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.001421/0.001421, allocations: 212.1 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.805 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_Cooling,fileNamePrefix="Modelica_4_1_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_1_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.00146/0.00146, allocations: 47.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2815, allocations: 53.37 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01098/0.2925, allocations: 8.461 MB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006233/0.2988, allocations: 2.948 MB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.2999, allocations: 27.88 kB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.3016, allocations: 0.5628 MB / 443.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001667/0.3033, allocations: 0.5776 MB / 443.7 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007513/0.304, allocations: 323.5 kB / 444 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002303/0.3063, allocations: 1.767 MB / 445.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007729/0.3071, allocations: 457.3 kB / 446.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.3081, allocations: 0.6966 MB / 446.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.3092, allocations: 0.7429 MB / 447.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002302/0.3094, allocations: 159.9 kB / 447.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003867/0.3098, allocations: 200 kB / 448 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003386/0.3101, allocations: 334.8 kB / 448.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007198/0.3108, allocations: 0.6611 MB / 449 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002304/0.3131, allocations: 2.008 MB / 451 MB, free: 2.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3131, allocations: 3.938 kB / 451 MB, free: 2.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3132, allocations: 0 / 451 MB, free: 2.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.291e-05/0.3132, allocations: 0 / 451 MB, free: 2.652 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.00346/0.3166, allocations: 1.759 MB / 452.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.3167, allocations: 8.031 kB / 452.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002088/0.3169, allocations: 164.9 kB / 452.9 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006506/0.3175, allocations: 203.9 kB / 453.1 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.3191, allocations: 0.7739 MB / 453.9 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.3193, allocations: 169.7 kB / 454.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.3194, allocations: 108 kB / 454.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002257/0.3217, allocations: 1.573 MB / 455.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.126e-05/0.3217, allocations: 11.95 kB / 455.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.825e-05/0.3218, allocations: 44 kB / 455.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.3218, allocations: 24 kB / 455.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.3234, allocations: 0.7573 MB / 456.6 MB, free: 12.76 MB / 366.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.005956/0.3294, allocations: 3.364 MB / 459.9 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/0.3309, allocations: 0.5452 MB / 460.5 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.3314, allocations: 242.7 kB / 460.7 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.3314, allocations: 12.5 kB / 460.7 MB, free: 8.434 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006817/0.3321, allocations: 328.2 kB / 461.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 3.256e-06/0.3321, allocations: 0 / 461.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004772/0.3369, allocations: 1.861 MB / 462.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002849/0.3372, allocations: 483.3 kB / 463.4 MB, free: 5.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.3388, allocations: 1.128 MB / 464.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-05/0.3388, allocations: 45.7 kB / 464.6 MB, free: 4.426 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005874/0.3394, allocations: 0.6521 MB / 465.2 MB, free: 3.766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.3396, allocations: 242 kB / 465.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/0.3399, allocations: 202.9 kB / 465.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3401, allocations: 341.9 kB / 466 MB, free: 2.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005777/0.3407, allocations: 297.9 kB / 466.3 MB, free: 2.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.3419, allocations: 1.176 MB / 467.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.3433, allocations: 0.9334 MB / 468.4 MB, free: 84 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3433, allocations: 4 kB / 468.4 MB, free: 80 kB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002152/0.3455, allocations: 1.208 MB / 469.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.998e-05/0.3456, allocations: 63.41 kB / 469.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-05/0.3456, allocations: 12 kB / 469.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005889/0.3462, allocations: 173.6 kB / 469.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000706/0.3469, allocations: 199.7 kB / 470 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004409/0.3513, allocations: 3.664 MB / 473.7 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009078/0.3522, allocations: 59.92 kB / 473.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.3523, allocations: 48 kB / 473.8 MB, free: 10.38 MB / 382.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.0004659/0.3527, allocations: 297.6 kB / 474.1 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/0.3529, allocations: 139.2 kB / 474.2 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.3544, allocations: 0.6944 MB / 474.9 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3545, allocations: 8 kB / 474.9 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3545, allocations: 3.984 kB / 474.9 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001428/0.3559, allocations: 0.9512 MB / 475.9 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/0.3587, allocations: 1.612 MB / 477.5 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3587, allocations: 0 / 477.5 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005/0.3592, allocations: 107.9 kB / 477.6 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004388/0.3596, allocations: 133.8 kB / 477.7 MB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/0.3597, allocations: 12 kB / 477.8 MB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00358/0.3633, allocations: 3.346 MB / 481.1 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3633, allocations: 4.031 kB / 481.1 MB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.3651, allocations: 1.061 MB / 482.2 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/0.3656, allocations: 183.3 kB / 482.3 MB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.3657, allocations: 15.94 kB / 482.4 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006347/0.3663, allocations: 39.91 kB / 482.4 MB, free: 1.309 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.3665, allocations: 60.39 kB / 482.5 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.074e-05/0.3665, allocations: 20 kB / 482.5 MB, free: 1.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001061/0.3676, allocations: 0.7445 MB / 483.2 MB, free: 492 kB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3676, allocations: 4 kB / 483.2 MB, free: 488 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.00104/0.3686, allocations: 311.9 kB / 483.5 MB, free: 176 kB / 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.002343/0.371, allocations: 1.639 MB / 485.2 MB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002187/0.3732, allocations: 1.126 MB / 486.3 MB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.3732, allocations: 4 kB / 486.3 MB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009261/0.3741, allocations: 0.5284 MB / 486.8 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.3754, allocations: 334.9 kB / 487.2 MB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/0.3902, allocations: 9.975 MB / 497.1 MB, free: 1.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/0.3908, allocations: 0.4935 MB / 497.6 MB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005405/0.3913, allocations: 145.8 kB / 497.8 MB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005884/0.3919, allocations: 483.2 kB / 498.2 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3919, allocations: 0 / 498.2 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0795/0.4714, allocations: 31.96 MB / 0.5178 GB, free: 1.234 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.88, allocations: 8 kB / 0.5178 GB, free: 1.227 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 651] Reference file matches [Calling sys.exit(0), Time elapsed: 38.246705270023085]