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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0012/0.001199, allocations: 96.92 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.555/1.555, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002207/0.0002207, allocations: 7.984 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1128, allocations: 51.49 MB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.008598/0.1215, allocations: 7.667 MB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005632/0.1272, allocations: 2.986 MB / 368.7 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008418/0.128, allocations: 27.94 kB / 368.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.1293, allocations: 497.5 kB / 369.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001347/0.1306, allocations: 0.6349 MB / 369.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005927/0.1312, allocations: 223.7 kB / 370.1 MB, free: 1.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.133, allocations: 1.261 MB / 371.4 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006621/0.1337, allocations: 499.4 kB / 371.8 MB, free: 68 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1709/0.3046, allocations: 0.5173 MB / 372.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.3061, allocations: 0.5893 MB / 372.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002682/0.3064, allocations: 75.19 kB / 373 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005699/0.307, allocations: 117.3 kB / 373.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.3072, allocations: 226.4 kB / 373.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004795/0.3077, allocations: 310.7 kB / 373.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002136/0.3099, allocations: 1.44 MB / 375.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.3099, allocations: 0 / 375.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3099, allocations: 1.188 kB / 375.1 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.229e-05/0.31, allocations: 0 / 375.1 MB, free: 9.902 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.004098/0.3141, allocations: 1.55 MB / 376.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.114e-05/0.3141, allocations: 13.83 kB / 376.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007469/0.3149, allocations: 187.8 kB / 376.8 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.3165, allocations: 0.7595 MB / 377.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.3167, allocations: 112.1 kB / 377.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.3169, allocations: 118.8 kB / 377.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.3189, allocations: 1.127 MB / 379 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/0.3189, allocations: 8.75 kB / 379 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.3191, allocations: 47.05 kB / 379 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.381e-05/0.3191, allocations: 30.06 kB / 379 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.3209, allocations: 0.7621 MB / 379.8 MB, free: 8.277 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.005975/0.3269, allocations: 3.884 MB / 383.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.3283, allocations: 0.5869 MB / 384.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.3284, allocations: 12.3 kB / 384.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005892/0.329, allocations: 304.7 kB / 384.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.457e-06/0.329, allocations: 0 / 384.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004497/0.3335, allocations: 2.111 MB / 386.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.3336, allocations: 478.4 kB / 387.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.3349, allocations: 1.01 MB / 388.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.869e-05/0.335, allocations: 39.42 kB / 388.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003963/0.3354, allocations: 0.6489 MB / 388.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.3355, allocations: 231.5 kB / 389.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.903e-05/0.3356, allocations: 20.06 kB / 389.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.882e-05/0.3356, allocations: 348.1 kB / 389.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/0.3361, allocations: 249.5 kB / 389.7 MB, free: 4.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007056/0.3369, allocations: 0.7133 MB / 390.4 MB, free: 3.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.3375, allocations: 410.8 kB / 390.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.3375, allocations: 3 kB / 390.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001869/0.3394, allocations: 1.129 MB / 391.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.3394, allocations: 64.23 kB / 392 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.3395, allocations: 14.23 kB / 392 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005655/0.34, allocations: 174.8 kB / 392.2 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006756/0.3407, allocations: 217.3 kB / 392.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003192/0.3439, allocations: 3.594 MB / 396 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.345, allocations: 78.95 kB / 396.1 MB, free: 112 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.849e-05/0.3451, allocations: 47.38 kB / 396.1 MB, free: 104 kB / 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007079/0.3458, allocations: 311.5 kB / 396.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.346, allocations: 124.4 kB / 396.5 MB, free: 15.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.3474, allocations: 0.7223 MB / 397.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3475, allocations: 6.344 kB / 397.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3475, allocations: 1.031 kB / 397.3 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001378/0.3489, allocations: 0.9701 MB / 398.2 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/0.352, allocations: 1.753 MB / 400 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.3521, allocations: 4 kB / 400 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.3525, allocations: 114.1 kB / 400.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004026/0.353, allocations: 125.9 kB / 400.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.353, allocations: 14.47 kB / 400.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/0.3562, allocations: 3.318 MB / 403.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.3562, allocations: 6.578 kB / 403.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.3581, allocations: 1.156 MB / 404.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005857/0.3587, allocations: 236.8 kB / 405 MB, free: 9.164 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.3589, allocations: 21.22 kB / 405 MB, free: 9.152 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006064/0.3595, allocations: 57.53 kB / 405 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.3596, allocations: 58.64 kB / 405.1 MB, free: 9.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.3597, allocations: 19.66 kB / 405.1 MB, free: 9.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000948/0.3606, allocations: 0.6713 MB / 405.8 MB, free: 8.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3607, allocations: 0 / 405.8 MB, free: 8.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001169/0.3618, allocations: 304.9 kB / 406.1 MB, free: 8.664 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002425/0.3621, allocations: 135.8 kB / 406.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.3641, allocations: 1.102 MB / 407.3 MB, free: 7.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3641, allocations: 4.188 kB / 407.3 MB, free: 7.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009552/0.3651, allocations: 0.5555 MB / 407.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.3664, allocations: 294.6 kB / 408.2 MB, free: 6.895 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.3707, allocations: 2.703 MB / 410.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007721/0.3715, allocations: 1.113 MB / 412 MB, free: 3.008 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000822/0.3724, allocations: 143.4 kB / 412.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.3725, allocations: 71.44 kB / 412.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3725, allocations: 0 / 412.2 MB, free: 2.797 MB / 318.1 MB Notification: Performance of Templates: time 0.02993/0.4025, allocations: 15.3 MB / 427.5 MB, free: 3.746 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches