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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 104.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 58.78 kB / 306.4 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.08133, allocations: 50.54 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009484/0.09084, allocations: 9.555 MB / 366.4 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004806/0.09568, allocations: 3.143 MB / 369.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.09672, allocations: 23.94 kB / 369.6 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001543/0.0983, allocations: 0.5245 MB / 370.1 MB, free: 1.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.09962, allocations: 496.4 kB / 370.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006411/0.1003, allocations: 283.7 kB / 370.9 MB, free: 356 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1392/0.2395, allocations: 1.661 MB / 372.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007752/0.2403, allocations: 0.5369 MB / 373.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007726/0.241, allocations: 0.619 MB / 373.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006808/0.2417, allocations: 0.7107 MB / 374.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.2419, allocations: 108.6 kB / 374.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003489/0.2423, allocations: 146.4 kB / 374.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.2425, allocations: 283.3 kB / 375 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005797/0.2431, allocations: 0.7571 MB / 375.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.2447, allocations: 1.911 MB / 377.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2447, allocations: 1.969 kB / 377.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.2447, allocations: 0 / 377.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.2447, allocations: 1.219 kB / 377.6 MB, free: 9.566 MB / 302.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.002671/0.2474, allocations: 1.798 MB / 379.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2475, allocations: 9.406 kB / 379.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001777/0.2476, allocations: 165.9 kB / 379.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005516/0.2482, allocations: 200.7 kB / 379.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.2493, allocations: 0.8148 MB / 380.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.2494, allocations: 120.7 kB / 380.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.2496, allocations: 108.3 kB / 380.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.2513, allocations: 1.143 MB / 382 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.273e-05/0.2514, allocations: 6.828 kB / 382 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.093e-05/0.2515, allocations: 51.78 kB / 382 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/0.2515, allocations: 25.72 kB / 382.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.253, allocations: 0.7605 MB / 382.8 MB, free: 7.129 MB / 302.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.0048/0.2578, allocations: 3.941 MB / 386.8 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.2592, allocations: 0.5891 MB / 387.3 MB, free: 4.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004579/0.2597, allocations: 272 kB / 387.6 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.2597, allocations: 8.062 kB / 387.6 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006029/0.2603, allocations: 294.2 kB / 387.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.915e-06/0.2604, allocations: 1.344 kB / 387.9 MB, free: 4.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004036/0.2644, allocations: 2.076 MB / 390 MB, free: 3.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.2645, allocations: 477.2 kB / 390.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.2658, allocations: 1.111 MB / 391.6 MB, free: 2.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.57e-05/0.2658, allocations: 43.52 kB / 391.6 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003349/0.2662, allocations: 0.6387 MB / 392.2 MB, free: 1.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.2663, allocations: 228.8 kB / 392.5 MB, free: 1.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002838/0.2666, allocations: 204 kB / 392.7 MB, free: 1.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.421e-05/0.2667, allocations: 343 kB / 393 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005055/0.2672, allocations: 244.9 kB / 393.2 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006732/0.2679, allocations: 0.7107 MB / 393.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.2691, allocations: 0.943 MB / 394.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.2691, allocations: 10.67 kB / 394.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001901/0.271, allocations: 1.145 MB / 396 MB, free: 14.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/0.2711, allocations: 61.38 kB / 396.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2711, allocations: 16.12 kB / 396.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005302/0.2716, allocations: 168.3 kB / 396.3 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/0.2723, allocations: 202.6 kB / 396.5 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003534/0.2758, allocations: 3.544 MB / 400 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000831/0.2767, allocations: 77.94 kB / 400.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.946e-05/0.2767, allocations: 49.64 kB / 400.2 MB, free: 11.17 MB / 318.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.0003995/0.2772, allocations: 295.7 kB / 400.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.2773, allocations: 129.7 kB / 400.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.2787, allocations: 0.7067 MB / 401.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2787, allocations: 10.33 kB / 401.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2787, allocations: 0 / 401.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001341/0.2801, allocations: 0.9527 MB / 402.2 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002636/0.2827, allocations: 1.797 MB / 404 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.2827, allocations: 3.062 kB / 404 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004927/0.2832, allocations: 107.7 kB / 404.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003912/0.2836, allocations: 126 kB / 404.3 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.898e-05/0.2837, allocations: 18.27 kB / 404.3 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/0.2866, allocations: 3.29 MB / 407.6 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2866, allocations: 4 kB / 407.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.2883, allocations: 1.049 MB / 408.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.2886, allocations: 255.6 kB / 408.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.2888, allocations: 16 kB / 408.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.2894, allocations: 43.95 kB / 408.9 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.2895, allocations: 64.38 kB / 409 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.792e-05/0.2896, allocations: 19.98 kB / 409 MB, free: 3.617 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009056/0.2905, allocations: 0.7445 MB / 409.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2905, allocations: 0 / 409.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009473/0.2915, allocations: 304 kB / 410.1 MB, free: 2.57 MB / 318.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.002049/0.2935, allocations: 1.62 MB / 411.7 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00178/0.2953, allocations: 1.091 MB / 412.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.2953, allocations: 6 kB / 412.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000886/0.2962, allocations: 0.5398 MB / 413.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.2976, allocations: 310.5 kB / 413.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.3128, allocations: 11.2 MB / 424.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.3134, allocations: 1.082 MB / 425.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005755/0.314, allocations: 149.8 kB / 426 MB, free: 1.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005253/0.3145, allocations: 475.3 kB / 426.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3145, allocations: 0 / 426.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05974/0.3742, allocations: 27.5 MB / 454 MB, free: 6.062 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.3745, allocations: 243.8 kB / 454.2 MB, free: 5.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.448/2.822, allocations: 3.938 kB / 454.3 MB, free: 5.809 MB / 366.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches