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.001165/0.001165, allocations: 114.4 kB / 16.63 MB, free: 6.812 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.001192/0.001192, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.228/1.228, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009427/0.0009427, allocations: 47.55 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07407/0.07503, allocations: 49.43 MB / 349.7 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008574/0.08363, allocations: 9.534 MB / 359.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003775/0.08743, allocations: 3.096 MB / 362.3 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004128/0.08785, allocations: 23.94 kB / 362.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.08895, allocations: 0.5167 MB / 362.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008232/0.08979, allocations: 0.4887 MB / 363.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.09024, allocations: 275.7 kB / 363.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001328/0.09158, allocations: 1.756 MB / 365.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006909/0.09228, allocations: 0.6414 MB / 366 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.09285, allocations: 0.6654 MB / 366.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006184/0.09348, allocations: 0.7506 MB / 367.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.09365, allocations: 160 kB / 367.6 MB, free: 2.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.09394, allocations: 200 kB / 367.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.09415, allocations: 334.8 kB / 368.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.09473, allocations: 0.7971 MB / 368.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1241/0.2188, allocations: 1.953 MB / 370.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2189, allocations: 7.203 kB / 370.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2189, allocations: 0.5312 kB / 370.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.802e-05/0.219, allocations: 0 / 370.9 MB, free: 14.53 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.003036/0.222, allocations: 1.796 MB / 372.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2221, allocations: 9.5 kB / 372.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.2222, allocations: 168.4 kB / 372.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005357/0.2228, allocations: 199.7 kB / 373 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.2238, allocations: 0.8129 MB / 373.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2239, allocations: 113.6 kB / 373.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.2241, allocations: 114.4 kB / 374.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.2258, allocations: 1.151 MB / 375.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.171e-05/0.2258, allocations: 1.875 kB / 375.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.588e-05/0.2259, allocations: 48.72 kB / 375.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.2259, allocations: 26.22 kB / 375.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.2272, allocations: 0.7588 MB / 376 MB, free: 12.84 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.004503/0.2317, allocations: 3.944 MB / 380 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/0.2331, allocations: 0.5778 MB / 380.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.2335, allocations: 268.7 kB / 380.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.2336, allocations: 9.328 kB / 380.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005757/0.2342, allocations: 303.8 kB / 381.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.044e-06/0.2342, allocations: 2.078 kB / 381.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.003727/0.2379, allocations: 2.077 MB / 383.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.238, allocations: 481.1 kB / 383.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.2392, allocations: 1.1 MB / 384.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/0.2393, allocations: 42.7 kB / 384.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.2396, allocations: 0.645 MB / 385.5 MB, free: 8.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.2397, allocations: 231.6 kB / 385.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.2399, allocations: 200.8 kB / 385.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.857e-05/0.24, allocations: 347.1 kB / 386.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.2405, allocations: 245.1 kB / 386.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006439/0.2411, allocations: 0.7106 MB / 387.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.2422, allocations: 0.9405 MB / 388.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.2422, allocations: 5.844 kB / 388.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001705/0.2439, allocations: 1.145 MB / 389.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.244, allocations: 69.66 kB / 389.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.244, allocations: 10.53 kB / 389.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004958/0.2445, allocations: 169 kB / 389.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.2451, allocations: 207.1 kB / 389.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.2484, allocations: 3.883 MB / 393.6 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.2496, allocations: 84.08 kB / 393.7 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.2497, allocations: 45.53 kB / 393.7 MB, free: 2.047 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.0004019/0.2501, allocations: 297.2 kB / 394 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.2502, allocations: 120.4 kB / 394.1 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001177/0.2514, allocations: 0.7113 MB / 394.8 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2514, allocations: 6.406 kB / 394.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.2514, allocations: 3.281 kB / 394.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001058/0.2525, allocations: 0.9568 MB / 395.8 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002416/0.2549, allocations: 1.793 MB / 397.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2549, allocations: 2.25 kB / 397.6 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004485/0.2554, allocations: 105.6 kB / 397.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003933/0.2558, allocations: 131.9 kB / 397.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.775e-05/0.2558, allocations: 20.14 kB / 397.9 MB, free: 15.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003102/0.2589, allocations: 3.583 MB / 401.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2589, allocations: 2.5 kB / 401.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.2606, allocations: 1.051 MB / 402.5 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003899/0.261, allocations: 253.4 kB / 402.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.2611, allocations: 14.31 kB / 402.8 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.2618, allocations: 54.3 kB / 402.8 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.2619, allocations: 65.7 kB / 402.9 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.309e-05/0.2619, allocations: 15.59 kB / 402.9 MB, free: 11.15 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008574/0.2628, allocations: 0.7444 MB / 403.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.01e-07/0.2628, allocations: 0 / 403.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009656/0.2638, allocations: 312.6 kB / 403.9 MB, free: 10.7 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.00197/0.2658, allocations: 1.618 MB / 405.6 MB, free: 9.121 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.2677, allocations: 1.12 MB / 406.7 MB, free: 8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.2677, allocations: 4 kB / 406.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.2686, allocations: 0.5522 MB / 407.2 MB, free: 7.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.2699, allocations: 325.7 kB / 407.5 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.2842, allocations: 11.19 MB / 418.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005632/0.2848, allocations: 1.082 MB / 419.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005807/0.2854, allocations: 148.2 kB / 420 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.2859, allocations: 479.2 kB / 420.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of SimCode: time 4.8e-07/0.2859, allocations: 0 / 420.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.093/1.379, allocations: 28.42 MB / 448.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/1.379, allocations: 252.2 kB / 449.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.931/4.31, allocations: 0 / 449.1 MB, free: 13.34 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