Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.0008818, allocations: 94.28 kB / 16.3 MB, free: 5.992 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.0009033/0.0009036, allocations: 184.4 kB / 17.2 MB, free: 5.914 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.33/1.33, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002229/0.0002229, allocations: 6.312 kB / 300.7 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08668, allocations: 50.43 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.00937/0.09609, allocations: 9.651 MB / 360.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005223/0.1013, allocations: 3.213 MB / 364 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001416/0.1028, allocations: 39.88 kB / 364 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001657/0.1045, allocations: 0.5129 MB / 364.6 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.1067, allocations: 0.7712 MB / 365.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008445/0.1076, allocations: 243.7 kB / 365.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002739/0.1104, allocations: 1.69 MB / 367.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000919/0.1113, allocations: 0.6911 MB / 367.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008148/0.1121, allocations: 0.6847 MB / 368.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007371/0.1129, allocations: 0.7544 MB / 369.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.113, allocations: 100 kB / 369.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003258/0.1133, allocations: 140 kB / 369.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.1136, allocations: 290.7 kB / 369.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.1139, allocations: 404.7 kB / 370.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001677/0.1156, allocations: 2.13 MB / 372.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1156, allocations: 0 / 372.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1156, allocations: 0 / 372.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.535e-05/0.1156, allocations: 0 / 372.4 MB, free: 6.348 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002818/0.1185, allocations: 1.839 MB / 374.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.1185, allocations: 8.031 kB / 374.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005815/0.1191, allocations: 257.4 kB / 374.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.1208, allocations: 1.064 MB / 375.6 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.718e-05/0.1209, allocations: 119.1 kB / 375.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.1211, allocations: 155.9 kB / 375.9 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002239/0.1233, allocations: 1.469 MB / 377.3 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/0.1234, allocations: 15.83 kB / 377.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.1235, allocations: 64 kB / 377.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.877e-05/0.1235, allocations: 43.94 kB / 377.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.1253, allocations: 1.01 MB / 378.5 MB, free: 136 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00701/0.1324, allocations: 6.16 MB / 384.6 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.1335, allocations: 0.5645 MB / 385.2 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.342e-05/0.1336, allocations: 16.55 kB / 385.2 MB, free: 9.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.1336, allocations: 39.12 kB / 385.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.905e-06/0.1336, allocations: 0 / 385.2 MB, free: 9.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004268/0.1379, allocations: 2.272 MB / 387.5 MB, free: 6.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/0.138, allocations: 111.5 kB / 387.6 MB, free: 6.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.1393, allocations: 1.192 MB / 388.8 MB, free: 5.332 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.1394, allocations: 37.7 kB / 388.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.1399, allocations: 0.8531 MB / 389.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.1401, allocations: 256.3 kB / 390 MB, free: 4.172 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.1401, allocations: 24 kB / 390 MB, free: 4.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1403, allocations: 345.9 kB / 390.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/0.1408, allocations: 278.4 kB / 390.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000785/0.1416, allocations: 0.7109 MB / 391.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00066/0.1422, allocations: 395 kB / 391.7 MB, free: 2.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.1423, allocations: 8 kB / 391.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.002065/0.1443, allocations: 1.213 MB / 392.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.1444, allocations: 12.5 kB / 392.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.1444, allocations: 23.94 kB / 392.9 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.1448, allocations: 110.5 kB / 393 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008478/0.1457, allocations: 255.6 kB / 393.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003234/0.1489, allocations: 4.204 MB / 397.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009065/0.1498, allocations: 56.05 kB / 397.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.1499, allocations: 55.98 kB / 397.6 MB, free: 11.87 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006569/0.1506, allocations: 357.4 kB / 398 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.1507, allocations: 146.2 kB / 398.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.1522, allocations: 0.7827 MB / 398.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1522, allocations: 4 kB / 398.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1523, allocations: 4 kB / 398.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.1523, allocations: 3.984 kB / 398.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/0.1556, allocations: 2.181 MB / 401.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.1556, allocations: 4 kB / 401.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005663/0.1562, allocations: 136.3 kB / 401.2 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/0.1565, allocations: 102.5 kB / 401.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.1566, allocations: 23.98 kB / 401.3 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/0.1599, allocations: 4.313 MB / 405.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.16, allocations: 4 kB / 405.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/0.1622, allocations: 1.432 MB / 407.1 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.1626, allocations: 259.4 kB / 407.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.1627, allocations: 27.94 kB / 407.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005441/0.1633, allocations: 39.91 kB / 407.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.1634, allocations: 64.38 kB / 407.5 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.1635, allocations: 20 kB / 407.5 MB, free: 1.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001036/0.1645, allocations: 0.7844 MB / 408.3 MB, free: 460 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1645, allocations: 0 / 408.3 MB, free: 460 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001159/0.1657, allocations: 316 kB / 408.6 MB, free: 144 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002205/0.1659, allocations: 135.1 kB / 408.7 MB, free: 0 / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001814/0.1677, allocations: 1.085 MB / 409.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.1678, allocations: 7.984 kB / 409.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009083/0.1687, allocations: 0.6809 MB / 410.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/0.1701, allocations: 333.8 kB / 410.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.1752, allocations: 3.442 MB / 414.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007659/0.176, allocations: 1.245 MB / 415.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007846/0.1768, allocations: 175.4 kB / 415.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.177, allocations: 87.42 kB / 415.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.503e-06/0.177, allocations: 3.938 kB / 415.8 MB, free: 8.766 MB / 350.1 MB Notification: Performance of Templates: time 0.1836/0.3606, allocations: 14.61 MB / 430.4 MB, free: 58.2 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches