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.001342/0.001343, allocations: 97.12 kB / 16.95 MB, free: 6.457 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.001506/0.001506, allocations: 181.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.889/1.889, allocations: 205.4 MB / 224 MB, free: 13.15 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.0005357/0.0005358, allocations: 8 kB / 280.8 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1167, allocations: 47.57 MB / 328.3 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01508/0.1319, allocations: 10.35 MB / 338.7 MB, free: 9.684 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009149/0.1411, allocations: 3.026 MB / 341.7 MB, free: 6.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002163/0.1433, allocations: 39.88 kB / 341.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002917/0.1462, allocations: 0.5086 MB / 342.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.1499, allocations: 0.5545 MB / 342.8 MB, free: 5.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002272/0.1522, allocations: 259.7 kB / 343.1 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005681/0.158, allocations: 2.012 MB / 345.1 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002799/0.1608, allocations: 0.6713 MB / 345.8 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002391/0.1632, allocations: 0.665 MB / 346.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002723/0.166, allocations: 0.7504 MB / 347.2 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007047/0.1667, allocations: 100 kB / 347.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.1682, allocations: 144 kB / 347.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007761/0.169, allocations: 290.6 kB / 347.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001374/0.1704, allocations: 388.8 kB / 348.1 MB, free: 244 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004738/0.1751, allocations: 2.107 MB / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.1752, allocations: 3.984 kB / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1752, allocations: 0 / 350.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.456e-05/0.1753, allocations: 0 / 350.2 MB, free: 14.12 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.006101/0.1814, allocations: 1.764 MB / 352 MB, free: 12.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.1815, allocations: 12.03 kB / 352 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.1831, allocations: 261.6 kB / 352.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003502/0.1866, allocations: 0.9964 MB / 353.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.1869, allocations: 115.1 kB / 353.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004779/0.1874, allocations: 159.8 kB / 353.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005156/0.1926, allocations: 1.48 MB / 355 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001028/0.1927, allocations: 19.84 kB / 355 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/0.193, allocations: 64 kB / 355 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.839e-05/0.193, allocations: 36 kB / 355.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003923/0.197, allocations: 0.9786 MB / 356.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01604/0.2131, allocations: 6.59 MB / 362.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.2146, allocations: 404.2 kB / 363 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007681/0.2154, allocations: 230.1 kB / 363.3 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.247e-05/0.2155, allocations: 4.438 kB / 363.3 MB, free: 492 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009218/0.2165, allocations: 276.8 kB / 363.5 MB, free: 192 kB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 5.34e-06/0.2165, allocations: 0 / 363.5 MB, free: 192 kB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.006571/0.2231, allocations: 1.777 MB / 365.3 MB, free: 14.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.2233, allocations: 162.8 kB / 365.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/0.2274, allocations: 1.269 MB / 366.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.2276, allocations: 37.7 kB / 366.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.2289, allocations: 0.8751 MB / 367.7 MB, free: 11.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003272/0.2292, allocations: 201.2 kB / 367.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/0.2293, allocations: 28 kB / 367.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002338/0.2296, allocations: 349.9 kB / 368.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009669/0.2306, allocations: 230.5 kB / 368.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.2323, allocations: 0.7956 MB / 369.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.2336, allocations: 407.6 kB / 369.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.238e-05/0.2336, allocations: 11.95 kB / 369.7 MB, free: 9.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004078/0.2377, allocations: 1.169 MB / 370.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.961e-05/0.2378, allocations: 41.7 kB / 370.9 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.745e-05/0.2379, allocations: 20 kB / 370.9 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.2384, allocations: 73.62 kB / 371 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.2399, allocations: 267.9 kB / 371.2 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.2432, allocations: 2.591 MB / 373.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.2452, allocations: 68.09 kB / 373.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.2455, allocations: 64 kB / 373.9 MB, free: 5.031 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.001234/0.2467, allocations: 361.3 kB / 374.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004265/0.2472, allocations: 138.3 kB / 374.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.2492, allocations: 0.5567 MB / 375 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.2492, allocations: 8 kB / 375 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.2493, allocations: 4 kB / 375 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.2493, allocations: 3.984 kB / 375 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005209/0.2545, allocations: 1.885 MB / 376.9 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.2545, allocations: 4 kB / 376.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008183/0.2554, allocations: 104.3 kB / 377 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002854/0.2557, allocations: 53.64 kB / 377 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.2558, allocations: 16 kB / 377.1 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2608/0.5166, allocations: 2.532 MB / 379.6 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/0.5166, allocations: 10.84 kB / 379.6 MB, free: 48.88 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.5187, allocations: 0.9351 MB / 380.5 MB, free: 48.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006943/0.5194, allocations: 261.6 kB / 380.8 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.5196, allocations: 14.67 kB / 380.8 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005074/0.5201, allocations: 37.81 kB / 380.8 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.5203, allocations: 62.31 kB / 380.9 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.5203, allocations: 18.88 kB / 380.9 MB, free: 48.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001848/0.5221, allocations: 0.8318 MB / 381.8 MB, free: 48.4 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5222, allocations: 3.828 kB / 381.8 MB, free: 48.4 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001749/0.5239, allocations: 304.4 kB / 382.1 MB, free: 48.4 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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.0002822/0.5242, allocations: 124.5 kB / 382.2 MB, free: 48.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.5261, allocations: 0.9279 MB / 383.1 MB, free: 47.99 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.5261, allocations: 5.25 kB / 383.1 MB, free: 47.99 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000773/0.5269, allocations: 482.3 kB / 383.6 MB, free: 47.76 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.529, allocations: 304.7 kB / 383.9 MB, free: 47.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005839/0.5349, allocations: 3.089 MB / 387 MB, free: 45.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009941/0.5359, allocations: 1.179 MB / 388.1 MB, free: 45.15 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.537, allocations: 169 kB / 388.3 MB, free: 45.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.5372, allocations: 85.09 kB / 388.4 MB, free: 45.1 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5372, allocations: 0 / 388.4 MB, free: 45.1 MB / 318.1 MB Notification: Performance of Templates: time 0.03318/0.5704, allocations: 13.74 MB / 402.1 MB, free: 39.18 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (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) 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