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.001157/0.001157, allocations: 107.3 kB / 18.35 MB, free: 4.77 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.001248/0.001248, allocations: 188.1 kB / 19.29 MB, free: 3.844 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.603/1.603, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.002137/0.002137, allocations: 55.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1278, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01528/0.1431, allocations: 12.1 MB / 340.8 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007136/0.1503, allocations: 3.301 MB / 344.1 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002075/0.1525, allocations: 35.94 kB / 344.2 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.1549, allocations: 0.675 MB / 344.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003439/0.1584, allocations: 0.7209 MB / 345.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.1599, allocations: 399.5 kB / 346 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004191/0.1641, allocations: 2.413 MB / 348.4 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.1656, allocations: 0.9969 MB / 349.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.167, allocations: 0.8988 MB / 350.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.1681, allocations: 0.9801 MB / 351.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002529/0.1683, allocations: 228 kB / 351.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.1688, allocations: 268 kB / 351.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004033/0.1692, allocations: 462.3 kB / 352.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009951/0.1702, allocations: 1.073 MB / 353.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.173, allocations: 2.83 MB / 356.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.173, allocations: 0 / 356.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.173, allocations: 4 kB / 356.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.34e-05/0.173, allocations: 0 / 356.1 MB, free: 8.227 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.003763/0.1768, allocations: 2.156 MB / 358.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1769, allocations: 12.03 kB / 358.3 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008759/0.1778, allocations: 274.4 kB / 358.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.1796, allocations: 1.13 MB / 359.7 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.822e-05/0.1797, allocations: 119.5 kB / 359.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000243/0.18, allocations: 163.8 kB / 359.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002428/0.1824, allocations: 1.5 MB / 361.4 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.787e-05/0.1825, allocations: 11.84 kB / 361.4 MB, free: 2.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.1826, allocations: 60 kB / 361.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-05/0.1826, allocations: 40 kB / 361.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001999/0.1846, allocations: 1.053 MB / 362.6 MB, free: 1.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00821/0.1929, allocations: 6.238 MB / 368.8 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.1944, allocations: 0.6114 MB / 369.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009482/0.1953, allocations: 466.2 kB / 369.9 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.022e-05/0.1954, allocations: 4.562 kB / 369.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.1954, allocations: 43.12 kB / 370 MB, free: 9.867 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 1.973e-06/0.1955, allocations: 0 / 370 MB, free: 9.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004916/0.2004, allocations: 2.368 MB / 372.3 MB, free: 7.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.345e-05/0.2005, allocations: 119.4 kB / 372.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.2023, allocations: 1.306 MB / 373.7 MB, free: 5.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.563e-05/0.2024, allocations: 37.7 kB / 373.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007853/0.2032, allocations: 0.8414 MB / 374.6 MB, free: 5.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.2035, allocations: 272.2 kB / 374.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003426/0.2038, allocations: 206.7 kB / 375.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002513/0.2041, allocations: 345.9 kB / 375.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006062/0.2047, allocations: 290.4 kB / 375.7 MB, free: 3.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009483/0.2056, allocations: 0.7381 MB / 376.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.2072, allocations: 1.088 MB / 377.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.2072, allocations: 4 kB / 377.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002288/0.2095, allocations: 1.256 MB / 378.8 MB, free: 416 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.2096, allocations: 16 kB / 378.8 MB, free: 400 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.2096, allocations: 16 kB / 378.8 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004929/0.2101, allocations: 138.6 kB / 379 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1997/0.4098, allocations: 254.9 kB / 379.2 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.4132, allocations: 4.629 MB / 383.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.4145, allocations: 61.17 kB / 383.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-05/0.4146, allocations: 54.86 kB / 384 MB, free: 47.02 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.0006238/0.4153, allocations: 352.7 kB / 384.3 MB, free: 46.9 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.4155, allocations: 144.3 kB / 384.4 MB, free: 46.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/0.4175, allocations: 0.8298 MB / 385.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.4176, allocations: 7.25 kB / 385.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4176, allocations: 1.094 kB / 385.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.4176, allocations: 6.078 kB / 385.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003908/0.4215, allocations: 2.334 MB / 387.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.4215, allocations: 2.094 kB / 387.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006151/0.4221, allocations: 131.7 kB / 387.7 MB, free: 45.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004691/0.4226, allocations: 127.8 kB / 387.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.4227, allocations: 21.78 kB / 387.9 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003599/0.4263, allocations: 4.786 MB / 392.7 MB, free: 41.06 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.4263, allocations: 4.312 kB / 392.7 MB, free: 41.06 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/0.4289, allocations: 1.306 MB / 394 MB, free: 40.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005624/0.4294, allocations: 282.1 kB / 394.3 MB, free: 40.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.4296, allocations: 16.36 kB / 394.3 MB, free: 40.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.4302, allocations: 39.19 kB / 394.3 MB, free: 40.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.4304, allocations: 66.34 kB / 394.4 MB, free: 40.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.969e-05/0.4305, allocations: 22 kB / 394.4 MB, free: 40.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.432, allocations: 0.8768 MB / 395.3 MB, free: 39.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.432, allocations: 0 / 395.3 MB, free: 39.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001505/0.4335, allocations: 333.9 kB / 395.6 MB, free: 39.82 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.0003233/0.4339, allocations: 135.3 kB / 395.7 MB, free: 39.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.4359, allocations: 1.132 MB / 396.9 MB, free: 39.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.436, allocations: 0 / 396.9 MB, free: 39.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.437, allocations: 0.7063 MB / 397.6 MB, free: 38.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.4385, allocations: 374.7 kB / 397.9 MB, free: 38.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006436/0.4449, allocations: 2.887 MB / 400.8 MB, free: 36.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008212/0.4458, allocations: 1.217 MB / 402 MB, free: 36.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006472/0.4464, allocations: 172.7 kB / 402.2 MB, free: 36.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.4467, allocations: 92.97 kB / 402.3 MB, free: 36.11 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4467, allocations: 0 / 402.3 MB, free: 36.11 MB / 318.1 MB Notification: Performance of Templates: time 0.02845/0.4752, allocations: 17.66 MB / 420 MB, free: 22.43 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 gbode -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