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.001137/0.001137, allocations: 104.4 kB / 18.35 MB, free: 4.633 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.001082/0.001082, allocations: 191 kB / 19.29 MB, free: 3.703 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.572/1.572, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001395/0.001395, allocations: 47.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09879/0.1002, allocations: 46.64 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01367/0.1139, allocations: 12.09 MB / 340.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.1211, allocations: 3.305 MB / 344.1 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.1228, allocations: 35.94 kB / 344.2 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002016/0.1248, allocations: 0.6711 MB / 344.8 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.1271, allocations: 0.7247 MB / 345.6 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009171/0.128, allocations: 403.5 kB / 346 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002792/0.1309, allocations: 2.421 MB / 348.4 MB, free: 24 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001383/0.1322, allocations: 0.9852 MB / 349.4 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.1335, allocations: 0.8988 MB / 350.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009726/0.1345, allocations: 0.984 MB / 351.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002455/0.1348, allocations: 228 kB / 351.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004544/0.1352, allocations: 272 kB / 351.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000346/0.1356, allocations: 458.3 kB / 352.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001068/0.1367, allocations: 1.077 MB / 353.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002932/0.1396, allocations: 2.826 MB / 356.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1396, allocations: 0 / 356.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1396, allocations: 0 / 356.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.824e-05/0.1397, allocations: 0 / 356.1 MB, free: 8.25 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.003762/0.1434, allocations: 2.156 MB / 358.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1435, allocations: 16.03 kB / 358.3 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008751/0.1444, allocations: 274.4 kB / 358.5 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.1462, allocations: 1.126 MB / 359.7 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.923e-05/0.1463, allocations: 115.5 kB / 359.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001984/0.1465, allocations: 163.8 kB / 359.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/0.1489, allocations: 1.504 MB / 361.4 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.149, allocations: 11.84 kB / 361.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001232/0.1491, allocations: 64 kB / 361.5 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.313e-05/0.1492, allocations: 40 kB / 361.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.1511, allocations: 1.045 MB / 362.6 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007946/0.1591, allocations: 6.241 MB / 368.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.1606, allocations: 0.6116 MB / 369.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008822/0.1615, allocations: 470.2 kB / 369.9 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.029e-05/0.1616, allocations: 8.562 kB / 369.9 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.1616, allocations: 39.12 kB / 370 MB, free: 9.891 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.615e-06/0.1616, allocations: 0 / 370 MB, free: 9.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004778/0.1664, allocations: 2.372 MB / 372.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.1665, allocations: 115.5 kB / 372.4 MB, free: 7.277 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/0.1682, allocations: 1.302 MB / 373.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.1683, allocations: 45.7 kB / 373.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005504/0.1688, allocations: 0.8453 MB / 374.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.169, allocations: 260.2 kB / 374.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.1693, allocations: 206.7 kB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1694, allocations: 345.9 kB / 375.4 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.17, allocations: 290.4 kB / 375.7 MB, free: 3.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008686/0.1709, allocations: 0.7342 MB / 376.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.1724, allocations: 1.084 MB / 377.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/0.1724, allocations: 8 kB / 377.5 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002399/0.1748, allocations: 1.26 MB / 378.8 MB, free: 444 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.1749, allocations: 12 kB / 378.8 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.1749, allocations: 16.5 kB / 378.8 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005293/0.1754, allocations: 138.5 kB / 379 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008292/0.1763, allocations: 251.6 kB / 379.2 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.191/0.3673, allocations: 4.641 MB / 383.8 MB, free: 47.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/0.3686, allocations: 59.2 kB / 383.9 MB, free: 47.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.846e-05/0.3687, allocations: 51.84 kB / 383.9 MB, free: 47.08 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0006346/0.3693, allocations: 354.1 kB / 384.3 MB, free: 46.97 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.3695, allocations: 146.4 kB / 384.4 MB, free: 46.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001883/0.3714, allocations: 0.8307 MB / 385.3 MB, free: 46.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.3714, allocations: 8.016 kB / 385.3 MB, free: 46.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3714, allocations: 1.25 kB / 385.3 MB, free: 46.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3714, allocations: 7.688 kB / 385.3 MB, free: 46.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.3751, allocations: 2.328 MB / 387.6 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.3751, allocations: 3.438 kB / 387.6 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005695/0.3757, allocations: 124.5 kB / 387.7 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004298/0.3761, allocations: 138.4 kB / 387.9 MB, free: 45.64 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.3762, allocations: 17.88 kB / 387.9 MB, free: 45.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003229/0.3794, allocations: 4.79 MB / 392.7 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.3794, allocations: 8 kB / 392.7 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.3818, allocations: 1.3 MB / 394 MB, free: 40.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006222/0.3825, allocations: 281.2 kB / 394.3 MB, free: 40.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.3826, allocations: 17.45 kB / 394.3 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000623/0.3833, allocations: 40.78 kB / 394.3 MB, free: 40.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.3835, allocations: 63.84 kB / 394.4 MB, free: 40.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.775e-05/0.3835, allocations: 22.48 kB / 394.4 MB, free: 40.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001488/0.385, allocations: 0.8809 MB / 395.3 MB, free: 39.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.385, allocations: 0 / 395.3 MB, free: 39.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001332/0.3864, allocations: 330.9 kB / 395.6 MB, free: 39.88 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000225/0.3866, allocations: 139.5 kB / 395.7 MB, free: 39.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.3886, allocations: 1.12 MB / 396.9 MB, free: 39.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3887, allocations: 1.312 kB / 396.9 MB, free: 39.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.3898, allocations: 0.7092 MB / 397.6 MB, free: 38.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.3916, allocations: 368.7 kB / 397.9 MB, free: 38.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005235/0.3968, allocations: 2.89 MB / 400.8 MB, free: 36.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006778/0.3975, allocations: 1.216 MB / 402 MB, free: 36.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001039/0.3986, allocations: 172 kB / 402.2 MB, free: 36.19 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002317/0.3988, allocations: 93.25 kB / 402.3 MB, free: 36.18 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3988, allocations: 0 / 402.3 MB, free: 36.18 MB / 318.1 MB Notification: Performance of Templates: time 0.02848/0.4273, allocations: 17.67 MB / 420 MB, free: 22.52 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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