Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.000971/0.0009711, allocations: 90.11 kB / 16.95 MB, free: 6.449 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.001176/0.001176, allocations: 183.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.795/1.795, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005706/0.0005707, allocations: 16 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1238, allocations: 47.57 MB / 328.4 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.0151/0.139, allocations: 10.7 MB / 339.1 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009221/0.1483, allocations: 3.123 MB / 342.2 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002765/0.1511, allocations: 35.94 kB / 342.2 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00295/0.1541, allocations: 0.5164 MB / 342.7 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003759/0.1579, allocations: 0.5971 MB / 343.3 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.1593, allocations: 251.6 kB / 343.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004513/0.1639, allocations: 2.175 MB / 345.8 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002383/0.1663, allocations: 0.6833 MB / 346.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.1683, allocations: 0.7194 MB / 347.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001955/0.1702, allocations: 0.801 MB / 348 MB, free: 388 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007779/0.171, allocations: 108 kB / 348.1 MB, free: 280 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001203/0.1722, allocations: 144 kB / 348.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005166/0.1728, allocations: 314.7 kB / 348.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009824/0.1738, allocations: 408.7 kB / 348.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.1767, allocations: 2.22 MB / 351.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/0.1767, allocations: 4 kB / 351.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.1767, allocations: 0 / 351.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001232/0.1769, allocations: 0 / 351.1 MB, free: 13.18 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.005013/0.1819, allocations: 1.86 MB / 353 MB, free: 11.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/0.1819, allocations: 12.03 kB / 353 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00155/0.1835, allocations: 285.4 kB / 353.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.1867, allocations: 1.064 MB / 354.3 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.1868, allocations: 115.1 kB / 354.5 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000408/0.1873, allocations: 159.9 kB / 354.6 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004139/0.1914, allocations: 1.504 MB / 356.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.946e-05/0.1915, allocations: 11.89 kB / 356.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.1917, allocations: 67.94 kB / 356.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-05/0.1918, allocations: 36 kB / 356.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002634/0.1944, allocations: 1.065 MB / 357.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/0.2059, allocations: 6.312 MB / 363.6 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.2077, allocations: 0.6271 MB / 364.2 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.2088, allocations: 466.8 kB / 364.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.2089, allocations: 12.5 kB / 364.7 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.2089, allocations: 47.08 kB / 364.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 4.107e-06/0.2089, allocations: 0 / 364.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.006474/0.2154, allocations: 2.462 MB / 367.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.864e-05/0.2155, allocations: 115.5 kB / 367.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002848/0.2184, allocations: 1.282 MB / 368.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.873e-05/0.2185, allocations: 41.7 kB / 368.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008778/0.2193, allocations: 0.8492 MB / 369.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/0.2197, allocations: 260.3 kB / 369.8 MB, free: 9.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.446e-05/0.2197, allocations: 24 kB / 369.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.2199, allocations: 349.9 kB / 370.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.2206, allocations: 294.5 kB / 370.4 MB, free: 9.258 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009896/0.2216, allocations: 0.7459 MB / 371.2 MB, free: 8.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008856/0.2225, allocations: 411 kB / 371.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.2225, allocations: 4 kB / 371.6 MB, free: 7.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003113/0.2257, allocations: 1.291 MB / 372.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.2257, allocations: 12 kB / 372.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.2258, allocations: 16 kB / 372.9 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000687/0.2265, allocations: 151.1 kB / 373 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008464/0.2273, allocations: 255.6 kB / 373.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004227/0.2316, allocations: 4.317 MB / 377.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.2328, allocations: 71.94 kB / 377.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.2329, allocations: 55.98 kB / 377.7 MB, free: 1.309 MB / 318.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 (137): * Single equations (assignments): 134 * 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.0008634/0.2338, allocations: 349.4 kB / 378.1 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003828/0.2342, allocations: 138.3 kB / 378.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2906/0.5248, allocations: 0.8645 MB / 379.1 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.279e-05/0.5249, allocations: 6.844 kB / 379.1 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.525, allocations: 1.578 kB / 379.1 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.085e-05/0.525, allocations: 3.469 kB / 379.1 MB, free: 50.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006349/0.5314, allocations: 2.373 MB / 381.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/0.5314, allocations: 3.656 kB / 381.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007376/0.5322, allocations: 139.1 kB / 381.6 MB, free: 49.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005464/0.5327, allocations: 145.3 kB / 381.7 MB, free: 49.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.606e-05/0.5328, allocations: 20.31 kB / 381.7 MB, free: 49.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004174/0.537, allocations: 4.449 MB / 386.2 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.5371, allocations: 8.375 kB / 386.2 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.5403, allocations: 1.341 MB / 387.5 MB, free: 45.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.5414, allocations: 283 kB / 387.8 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005741/0.542, allocations: 17.14 kB / 387.8 MB, free: 44.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.5432, allocations: 47.59 kB / 387.9 MB, free: 44.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.5435, allocations: 65.12 kB / 387.9 MB, free: 44.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.291e-05/0.5436, allocations: 23.53 kB / 388 MB, free: 44.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002716/0.5463, allocations: 0.8633 MB / 388.8 MB, free: 44.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5463, allocations: 3.938 kB / 388.8 MB, free: 44.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002535/0.5489, allocations: 327.1 kB / 389.2 MB, free: 44.46 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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.0004279/0.5493, allocations: 133.6 kB / 389.3 MB, free: 44.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002872/0.5522, allocations: 1.134 MB / 390.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/0.5522, allocations: 1 kB / 390.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.5537, allocations: 0.7159 MB / 391.1 MB, free: 43.26 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002875/0.5566, allocations: 346.4 kB / 391.5 MB, free: 43.15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009199/0.5658, allocations: 3.583 MB / 395.1 MB, free: 40.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.5673, allocations: 1.215 MB / 396.3 MB, free: 40.24 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001154/0.5684, allocations: 169.2 kB / 396.4 MB, free: 40.2 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.5688, allocations: 93.41 kB / 396.5 MB, free: 40.18 MB / 318.1 MB Notification: Performance of SimCode: time 1.793e-06/0.5689, allocations: 0 / 396.5 MB, free: 40.18 MB / 318.1 MB Notification: Performance of Templates: time 0.03772/0.6066, allocations: 16.14 MB / 412.7 MB, free: 28.96 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches