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.001342/0.001342, allocations: 114.5 kB / 17.93 MB, free: 5.566 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.001196/0.001196, allocations: 189.9 kB / 18.86 MB, free: 4.645 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.457/1.457, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001139/0.001139, allocations: 51.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09181, allocations: 46.62 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01202/0.1039, allocations: 12.02 MB / 339.5 MB, free: 8.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005843/0.1098, allocations: 3.258 MB / 342.7 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.1115, allocations: 39.88 kB / 342.7 MB, free: 5.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.1134, allocations: 0.5827 MB / 343.3 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001935/0.1153, allocations: 0.6245 MB / 344 MB, free: 4.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.1161, allocations: 355.7 kB / 344.3 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002465/0.1185, allocations: 2.402 MB / 346.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.1197, allocations: 0.9852 MB / 347.7 MB, free: 416 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/0.121, allocations: 0.9065 MB / 348.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009344/0.122, allocations: 0.9877 MB / 349.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002386/0.1222, allocations: 232 kB / 349.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004216/0.1226, allocations: 264 kB / 350.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002953/0.1229, allocations: 462.3 kB / 350.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009632/0.1239, allocations: 1.073 MB / 351.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.126, allocations: 2.311 MB / 353.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.126, allocations: 0 / 353.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.126, allocations: 0 / 353.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.295e-05/0.1261, allocations: 4 kB / 353.9 MB, free: 10.17 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.00358/0.1297, allocations: 2.164 MB / 356.1 MB, free: 7.945 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.1297, allocations: 12.03 kB / 356.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008744/0.1306, allocations: 274.4 kB / 356.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.1322, allocations: 1.107 MB / 357.5 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.954e-05/0.1323, allocations: 115.5 kB / 357.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.1325, allocations: 159.8 kB / 357.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.1349, allocations: 1.508 MB / 359.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.899e-05/0.135, allocations: 15.83 kB / 359.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.1351, allocations: 64 kB / 359.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.161e-05/0.1352, allocations: 40 kB / 359.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.1371, allocations: 1.053 MB / 360.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007627/0.1447, allocations: 6.292 MB / 366.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.1462, allocations: 0.6073 MB / 367.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008389/0.1471, allocations: 470.2 kB / 367.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.1471, allocations: 8.703 kB / 367.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1472, allocations: 47.05 kB / 367.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.896e-06/0.1472, allocations: 0 / 367.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004925/0.1521, allocations: 2.372 MB / 370.2 MB, free: 9.289 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.1522, allocations: 107.5 kB / 370.3 MB, free: 9.156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.154, allocations: 1.31 MB / 371.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.078e-05/0.154, allocations: 41.7 kB / 371.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005641/0.1546, allocations: 0.8414 MB / 372.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.1548, allocations: 268.2 kB / 372.7 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.1551, allocations: 202.7 kB / 372.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1552, allocations: 349.9 kB / 373.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005398/0.1558, allocations: 286.5 kB / 373.6 MB, free: 5.836 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/0.1566, allocations: 0.7381 MB / 374.3 MB, free: 4.883 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.1581, allocations: 1.092 MB / 375.4 MB, free: 3.578 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.1581, allocations: 4 kB / 375.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002442/0.1606, allocations: 1.256 MB / 376.7 MB, free: 2.301 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.1606, allocations: 12.06 kB / 376.7 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.1606, allocations: 16 kB / 376.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.1612, allocations: 138.4 kB / 376.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008164/0.162, allocations: 259.5 kB / 377.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1872/0.3493, allocations: 4.624 MB / 381.7 MB, free: 48.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.3505, allocations: 62.02 kB / 381.8 MB, free: 48.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.544e-05/0.3506, allocations: 52.92 kB / 381.8 MB, free: 48.39 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.0006361/0.3513, allocations: 357 kB / 382.2 MB, free: 48.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.3515, allocations: 138.6 kB / 382.3 MB, free: 48.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/0.3534, allocations: 0.832 MB / 383.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.3534, allocations: 8.781 kB / 383.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3535, allocations: 2.547 kB / 383.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.3535, allocations: 10.88 kB / 383.1 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004117/0.3576, allocations: 2.329 MB / 385.5 MB, free: 47.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.3576, allocations: 4 kB / 385.5 MB, free: 47.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000564/0.3582, allocations: 127.7 kB / 385.6 MB, free: 47.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004804/0.3587, allocations: 138.9 kB / 385.7 MB, free: 47.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.3588, allocations: 21.48 kB / 385.8 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/0.3622, allocations: 4.783 MB / 390.5 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.3622, allocations: 7.344 kB / 390.6 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002502/0.3647, allocations: 1.305 MB / 391.9 MB, free: 41.86 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004793/0.3652, allocations: 278.4 kB / 392.1 MB, free: 41.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.3654, allocations: 25.17 kB / 392.2 MB, free: 41.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.366, allocations: 36.19 kB / 392.2 MB, free: 41.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.3662, allocations: 69.22 kB / 392.3 MB, free: 41.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.3662, allocations: 22.39 kB / 392.3 MB, free: 41.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.3676, allocations: 0.8763 MB / 393.2 MB, free: 41.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3676, allocations: 0 / 393.2 MB, free: 41.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001292/0.3689, allocations: 327.3 kB / 393.5 MB, free: 41.27 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.0002175/0.3691, allocations: 131.9 kB / 393.6 MB, free: 41.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.3711, allocations: 1.147 MB / 394.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.3711, allocations: 1.438 kB / 394.8 MB, free: 40.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009355/0.3721, allocations: 0.7081 MB / 395.5 MB, free: 40.05 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001646/0.3737, allocations: 358.5 kB / 395.8 MB, free: 39.94 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00516/0.3789, allocations: 3.63 MB / 399.4 MB, free: 37.63 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006789/0.3796, allocations: 1.217 MB / 400.7 MB, free: 36.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.3799, allocations: 100.5 kB / 400.8 MB, free: 36.89 MB / 318.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3799, allocations: 0 / 400.8 MB, free: 36.89 MB / 318.1 MB Notification: Performance of Templates: time 0.03625/0.4162, allocations: 40.87 MB / 441.6 MB, free: 248 kB / 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/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","../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