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.001133/0.001133, allocations: 115.7 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001369/0.001369, allocations: 201.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 63.59 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08619/0.08739, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009937/0.09737, allocations: 9.551 MB / 366.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004623/0.102, allocations: 3.123 MB / 369.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008081/0.1029, allocations: 23.94 kB / 369.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.1043, allocations: 0.5245 MB / 370.3 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.1055, allocations: 496.4 kB / 370.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000554/0.106, allocations: 275.7 kB / 371.1 MB, free: 280 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1427/0.2487, allocations: 1.756 MB / 372.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008471/0.2496, allocations: 0.6303 MB / 373.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009579/0.2505, allocations: 0.6764 MB / 374.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007659/0.2513, allocations: 0.7364 MB / 374.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.2515, allocations: 159 kB / 375 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003586/0.2519, allocations: 202 kB / 375.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.2521, allocations: 337.7 kB / 375.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006201/0.2527, allocations: 0.8062 MB / 376.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.2545, allocations: 1.958 MB / 378.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2545, allocations: 0 / 378.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2545, allocations: 1.781 kB / 378.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.233e-05/0.2545, allocations: 0 / 378.3 MB, free: 9.586 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.002777/0.2573, allocations: 1.791 MB / 380.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2573, allocations: 8.688 kB / 380.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.2575, allocations: 164.5 kB / 380.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005574/0.2581, allocations: 200.3 kB / 380.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001138/0.2592, allocations: 0.8249 MB / 381.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.2594, allocations: 110.9 kB / 381.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/0.2596, allocations: 113.9 kB / 381.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001825/0.2614, allocations: 1.143 MB / 382.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.523e-05/0.2615, allocations: 6.812 kB / 382.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.875e-05/0.2616, allocations: 47.84 kB / 382.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.2616, allocations: 29.61 kB / 382.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.263, allocations: 0.7599 MB / 383.5 MB, free: 6.844 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.005286/0.2683, allocations: 3.951 MB / 387.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001597/0.2699, allocations: 0.5771 MB / 388 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005173/0.2705, allocations: 268.9 kB / 388.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.064e-05/0.2705, allocations: 8.219 kB / 388.3 MB, free: 4.117 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007262/0.2713, allocations: 300 kB / 388.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.517e-06/0.2713, allocations: 0 / 388.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005013/0.2763, allocations: 2.075 MB / 390.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.184e-05/0.2764, allocations: 481.5 kB / 391.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.2779, allocations: 1.109 MB / 392.2 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-05/0.278, allocations: 39.08 kB / 392.3 MB, free: 1.746 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003619/0.2784, allocations: 0.6397 MB / 392.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.2785, allocations: 236.9 kB / 393.2 MB, free: 1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.2788, allocations: 195.3 kB / 393.3 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.059e-05/0.2789, allocations: 347.5 kB / 393.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.2794, allocations: 244.6 kB / 393.9 MB, free: 444 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007633/0.2801, allocations: 0.707 MB / 394.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.2815, allocations: 0.9453 MB / 395.6 MB, free: 14.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.2816, allocations: 4.031 kB / 395.6 MB, free: 14.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002356/0.2839, allocations: 1.144 MB / 396.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.148e-05/0.284, allocations: 66.45 kB / 396.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/0.284, allocations: 11.09 kB / 396.8 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006085/0.2846, allocations: 167.4 kB / 397 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006812/0.2853, allocations: 208 kB / 397.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.2897, allocations: 3.891 MB / 401.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.2909, allocations: 81.62 kB / 401.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.253e-05/0.291, allocations: 45.22 kB / 401.2 MB, free: 10.55 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.0005361/0.2915, allocations: 289.9 kB / 401.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.2917, allocations: 131.7 kB / 401.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.2932, allocations: 0.7096 MB / 402.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2932, allocations: 6.531 kB / 402.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.2932, allocations: 0 / 402.3 MB, free: 9.832 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001328/0.2945, allocations: 0.9612 MB / 403.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.2975, allocations: 1.793 MB / 405.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2975, allocations: 3.062 kB / 405.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004987/0.298, allocations: 104.2 kB / 405.2 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004398/0.2985, allocations: 127.8 kB / 405.3 MB, free: 7.672 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.706e-05/0.2985, allocations: 13.12 kB / 405.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003579/0.3021, allocations: 3.599 MB / 408.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3021, allocations: 4.031 kB / 408.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001921/0.3041, allocations: 1.053 MB / 410 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004807/0.3046, allocations: 247.6 kB / 410.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.3048, allocations: 23.98 kB / 410.2 MB, free: 2.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007225/0.3055, allocations: 43.91 kB / 410.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.3057, allocations: 64.36 kB / 410.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.3057, allocations: 16 kB / 410.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.3068, allocations: 0.7484 MB / 411.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3068, allocations: 3.938 kB / 411.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001171/0.308, allocations: 308 kB / 411.4 MB, free: 1.293 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.002333/0.3103, allocations: 1.631 MB / 413 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002285/0.3126, allocations: 1.104 MB / 414.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3126, allocations: 0.875 kB / 414.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.3136, allocations: 0.5512 MB / 414.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.3151, allocations: 328.1 kB / 415 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/0.3322, allocations: 11.21 MB / 426.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007833/0.333, allocations: 1.078 MB / 427.3 MB, free: 456 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006902/0.3338, allocations: 153.8 kB / 427.5 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006867/0.3345, allocations: 482.3 kB / 427.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3345, allocations: 0 / 427.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07979/0.4143, allocations: 28.4 MB / 456.3 MB, free: 3.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.4145, allocations: 250.6 kB / 456.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/2.974, allocations: 0 / 456.6 MB, free: 3.668 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