Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 96.19 kB / 16.93 MB, free: 5.984 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.0009744/0.0009744, allocations: 181.6 kB / 17.82 MB, free: 5.652 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.688/1.688, allocations: 205.4 MB / 224 MB, free: 13.17 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.0005858/0.0005861, allocations: 11.28 kB / 280.8 MB, free: 3.742 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1198, allocations: 47.58 MB / 328.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01121/0.1311, allocations: 9.285 MB / 337.6 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007205/0.1383, allocations: 3.133 MB / 340.8 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002083/0.1404, allocations: 31.94 kB / 340.8 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.1426, allocations: 0.5051 MB / 341.3 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002511/0.1451, allocations: 0.7089 MB / 342 MB, free: 6.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008499/0.146, allocations: 251.7 kB / 342.2 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003128/0.1491, allocations: 1.553 MB / 343.8 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009257/0.1501, allocations: 0.6713 MB / 344.5 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009737/0.151, allocations: 0.6381 MB / 345.1 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008218/0.1519, allocations: 0.7155 MB / 345.8 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.152, allocations: 96 kB / 345.9 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003533/0.1524, allocations: 136 kB / 346 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.1526, allocations: 274.8 kB / 346.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000374/0.153, allocations: 392.8 kB / 346.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.1547, allocations: 2.041 MB / 348.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1548, allocations: 0 / 348.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1548, allocations: 0 / 348.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.1548, allocations: 0 / 348.7 MB, free: 15.57 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00287/0.1577, allocations: 1.756 MB / 350.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1577, allocations: 12.02 kB / 350.5 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006717/0.1584, allocations: 245.6 kB / 350.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.1599, allocations: 1.012 MB / 351.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.589e-05/0.16, allocations: 119.1 kB / 351.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.1602, allocations: 155.9 kB / 352 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002294/0.1625, allocations: 1.468 MB / 353.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.537e-05/0.1625, allocations: 11.94 kB / 353.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.1627, allocations: 63.98 kB / 353.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.1627, allocations: 40 kB / 353.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.1644, allocations: 0.9708 MB / 354.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007974/0.1724, allocations: 6.524 MB / 361.1 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000828/0.1733, allocations: 404.2 kB / 361.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.204e-05/0.1734, allocations: 4.438 kB / 361.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005908/0.1739, allocations: 272.8 kB / 361.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.174, allocations: 4 kB / 361.8 MB, free: 1.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003551/0.1775, allocations: 1.778 MB / 363.6 MB, free: 92 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1776, allocations: 166.8 kB / 363.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.1792, allocations: 1.187 MB / 364.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.1792, allocations: 37.7 kB / 364.9 MB, free: 14.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007391/0.1799, allocations: 0.8673 MB / 365.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.1801, allocations: 209.2 kB / 366 MB, free: 13.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.541e-05/0.1802, allocations: 20 kB / 366 MB, free: 13.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.1804, allocations: 353.9 kB / 366.4 MB, free: 13.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004364/0.1808, allocations: 230.5 kB / 366.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000965/0.1818, allocations: 0.8034 MB / 367.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.1825, allocations: 395.6 kB / 367.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.1825, allocations: 4 kB / 367.8 MB, free: 11.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001874/0.1844, allocations: 1.176 MB / 369 MB, free: 10.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.1845, allocations: 41.69 kB / 369 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.1845, allocations: 20 kB / 369 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.1847, allocations: 74.33 kB / 369.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007888/0.1855, allocations: 267.7 kB / 369.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.1876, allocations: 2.599 MB / 372 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.1886, allocations: 67.8 kB / 372 MB, free: 6.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.819e-05/0.1887, allocations: 64 kB / 372.1 MB, free: 6.887 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000666/0.1894, allocations: 365.4 kB / 372.4 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1896, allocations: 130.4 kB / 372.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.1906, allocations: 0.5684 MB / 373.1 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1906, allocations: 8 kB / 373.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1906, allocations: 0 / 373.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1906, allocations: 0 / 373.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/0.1933, allocations: 1.821 MB / 375 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.1933, allocations: 11.92 kB / 375 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.1938, allocations: 108.3 kB / 375.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000147/0.1939, allocations: 49.69 kB / 375.1 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.194, allocations: 16 kB / 375.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00172/0.1957, allocations: 2.56 MB / 377.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.1957, allocations: 7.938 kB / 377.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2198/0.4155, allocations: 1.115 MB / 378.8 MB, free: 49.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006263/0.4162, allocations: 247.9 kB / 379.1 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.4163, allocations: 18.52 kB / 379.1 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005444/0.4169, allocations: 33.14 kB / 379.1 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.417, allocations: 53.19 kB / 379.2 MB, free: 49.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.4171, allocations: 18.17 kB / 379.2 MB, free: 49.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001281/0.4183, allocations: 0.7785 MB / 380 MB, free: 49.53 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4184, allocations: 4.125 kB / 380 MB, free: 49.53 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001467/0.4198, allocations: 300.2 kB / 380.3 MB, free: 49.53 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002941/0.4201, allocations: 134.9 kB / 380.4 MB, free: 49.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.4218, allocations: 0.9215 MB / 381.3 MB, free: 49.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4219, allocations: 0 / 381.3 MB, free: 49.14 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007178/0.4226, allocations: 479.8 kB / 381.8 MB, free: 48.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.4239, allocations: 299.3 kB / 382.1 MB, free: 48.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005578/0.4295, allocations: 3.073 MB / 385.2 MB, free: 47.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.4307, allocations: 1.218 MB / 386.4 MB, free: 46.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008367/0.4316, allocations: 167.6 kB / 386.5 MB, free: 46.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002004/0.4318, allocations: 82.06 kB / 386.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4318, allocations: 1.125 kB / 386.6 MB, free: 46.38 MB / 318.1 MB Notification: Performance of Templates: time 0.02808/0.4599, allocations: 12.92 MB / 399.5 MB, free: 41.66 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches