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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009759/0.000976, allocations: 46.61 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.08017, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01007/0.09027, allocations: 9.581 MB / 359.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004737/0.09503, allocations: 3.127 MB / 362.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005458/0.0956, allocations: 23.94 kB / 362.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.09688, allocations: 0.5899 MB / 363.5 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.0979, allocations: 0.5542 MB / 364 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.09845, allocations: 315.5 kB / 364.4 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001496/0.09995, allocations: 1.752 MB / 366.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008248/0.1008, allocations: 0.6453 MB / 366.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007829/0.1016, allocations: 0.6615 MB / 367.4 MB, free: 2.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007952/0.1024, allocations: 0.7428 MB / 368.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002039/0.1026, allocations: 160 kB / 368.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000371/0.103, allocations: 200 kB / 368.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002463/0.1032, allocations: 330.8 kB / 368.8 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007302/0.104, allocations: 0.8048 MB / 369.6 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1336/0.2376, allocations: 1.953 MB / 371.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.218e-05/0.2377, allocations: 0.7031 kB / 371.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.2377, allocations: 1.031 kB / 371.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001211/0.2378, allocations: 0 / 371.6 MB, free: 14.66 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.004937/0.2427, allocations: 1.798 MB / 373.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2428, allocations: 10.64 kB / 373.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003068/0.2431, allocations: 165.9 kB / 373.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007748/0.2439, allocations: 197.7 kB / 373.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.2454, allocations: 0.8194 MB / 374.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.2455, allocations: 114.9 kB / 374.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.2457, allocations: 112.7 kB / 374.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001955/0.2477, allocations: 1.144 MB / 375.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.384e-05/0.2478, allocations: 5.219 kB / 375.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.2479, allocations: 46.06 kB / 376 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.2479, allocations: 26.12 kB / 376 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.2495, allocations: 0.7588 MB / 376.8 MB, free: 12.94 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.005824/0.2553, allocations: 3.945 MB / 380.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2568, allocations: 0.5839 MB / 381.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004703/0.2573, allocations: 267.3 kB / 381.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.2573, allocations: 10.3 kB / 381.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006156/0.2579, allocations: 298.8 kB / 381.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.016e-06/0.258, allocations: 3.312 kB / 381.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004493/0.2625, allocations: 2.082 MB / 383.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.646e-05/0.2626, allocations: 478.7 kB / 384.4 MB, free: 9.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.2641, allocations: 1.105 MB / 385.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.2642, allocations: 43.17 kB / 385.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.2646, allocations: 0.6368 MB / 386.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.2647, allocations: 230 kB / 386.4 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.265, allocations: 204.2 kB / 386.6 MB, free: 7.863 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.265, allocations: 346.1 kB / 387 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005318/0.2656, allocations: 245 kB / 387.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007208/0.2663, allocations: 0.7107 MB / 387.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.2675, allocations: 0.9422 MB / 388.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.679e-06/0.2675, allocations: 3.812 kB / 388.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002026/0.2696, allocations: 1.149 MB / 390 MB, free: 5.586 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.2696, allocations: 62.22 kB / 390.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/0.2696, allocations: 11.91 kB / 390.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005512/0.2702, allocations: 171 kB / 390.2 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/0.2709, allocations: 206.8 kB / 390.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003394/0.2743, allocations: 3.878 MB / 394.3 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.2754, allocations: 67.66 kB / 394.4 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-05/0.2755, allocations: 51.86 kB / 394.4 MB, free: 2.051 MB / 302.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.0004843/0.276, allocations: 300.3 kB / 394.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.2762, allocations: 123.1 kB / 394.9 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.2775, allocations: 0.7071 MB / 395.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2776, allocations: 4.812 kB / 395.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2776, allocations: 0 / 395.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001127/0.2787, allocations: 0.9548 MB / 396.5 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.2816, allocations: 1.806 MB / 398.3 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2816, allocations: 1.375 kB / 398.3 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000457/0.282, allocations: 105.6 kB / 398.4 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004202/0.2825, allocations: 131.8 kB / 398.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.2825, allocations: 17.48 kB / 398.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00327/0.2858, allocations: 3.587 MB / 402.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.2858, allocations: 8.25 kB / 402.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.2875, allocations: 1.051 MB / 403.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004161/0.2879, allocations: 254.1 kB / 403.5 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.2881, allocations: 18.19 kB / 403.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006275/0.2888, allocations: 35.22 kB / 403.5 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.2889, allocations: 60.2 kB / 403.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.2889, allocations: 22.69 kB / 403.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009117/0.2898, allocations: 0.7452 MB / 404.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2899, allocations: 0 / 404.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009663/0.2908, allocations: 310.3 kB / 404.7 MB, free: 10.45 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.002039/0.2929, allocations: 1.63 MB / 406.3 MB, free: 8.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001859/0.2947, allocations: 1.113 MB / 407.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2948, allocations: 1.938 kB / 407.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008006/0.2956, allocations: 0.5536 MB / 408 MB, free: 7.098 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.2968, allocations: 337.6 kB / 408.3 MB, free: 6.773 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.3093, allocations: 10.76 MB / 419 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.3098, allocations: 1.089 MB / 420.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004945/0.3103, allocations: 145.8 kB / 420.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004646/0.3108, allocations: 467.3 kB / 420.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3108, allocations: 0 / 420.7 MB, free: 9.578 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.564/0.8748, allocations: 28.6 MB / 449.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.98/15.86, allocations: 10.27 kB / 449.3 MB, free: 13.44 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 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) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches