Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009945/0.0009946, allocations: 202.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007491/0.0007491, allocations: 89.08 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.495e-05/1.497e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08454, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.315/0.3996, allocations: 107.8 MB / 0.4912 GB, free: 1.688 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.3999, allocations: 86.36 kB / 0.4913 GB, free: 1.645 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1273/0.5272, allocations: 49.94 MB / 0.5401 GB, free: 4.445 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.5272, allocations: 4 kB / 0.5401 GB, free: 4.441 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001586/0.5274, allocations: 63.94 kB / 0.5401 GB, free: 4.379 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.004876/0.5323, allocations: 2.515 MB / 0.5426 GB, free: 1.805 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.5323, allocations: 8.031 kB / 0.5426 GB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.5335, allocations: 380.3 kB / 0.543 GB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.5368, allocations: 1.773 MB / 0.5447 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.447e-05/0.5369, allocations: 79.94 kB / 0.5448 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000289/0.5372, allocations: 144 kB / 0.5449 GB, free: 15.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003787/0.541, allocations: 2.309 MB / 0.5472 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00415/0.5452, allocations: 2.699 MB / 0.5498 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/0.5452, allocations: 7.906 kB / 0.5498 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/0.5454, allocations: 0 / 0.5498 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.752e-05/0.5455, allocations: 108.6 kB / 0.5499 GB, free: 10.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01289/0.5584, allocations: 9.299 MB / 0.559 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.5608, allocations: 2.14 MB / 0.5611 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001182/0.562, allocations: 0.8951 MB / 0.562 GB, free: 13.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000316/0.5623, allocations: 219.5 kB / 0.5622 GB, free: 13.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.5623, allocations: 47.88 kB / 0.5622 GB, free: 13.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=121): time 3.156e-06/0.5623, allocations: 0 / 0.5622 GB, free: 13.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=143): time 0.00903/0.5714, allocations: 5.268 MB / 0.5674 GB, free: 7.711 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.578e-05/0.5714, allocations: 68.72 kB / 0.5674 GB, free: 7.633 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.5731, allocations: 1.271 MB / 0.5687 GB, free: 6.355 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.83e-05/0.5732, allocations: 29.64 kB / 0.5687 GB, free: 6.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007758/0.574, allocations: 1.151 MB / 0.5698 GB, free: 5.156 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003895/0.5744, allocations: 476.9 kB / 0.5703 GB, free: 4.684 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.75e-05/0.5745, allocations: 0 / 0.5703 GB, free: 4.684 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.5747, allocations: 365.9 kB / 0.5706 GB, free: 4.32 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.5758, allocations: 0.7731 MB / 0.5714 GB, free: 3.547 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.577, allocations: 1.138 MB / 0.5725 GB, free: 2.254 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.5783, allocations: 0.947 MB / 0.5734 GB, free: 1.309 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.5783, allocations: 4 kB / 0.5734 GB, free: 1.305 MB / 442.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.2111/0.7894, allocations: 2.569 MB / 0.5759 GB, free: 90.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.7895, allocations: 12.22 kB / 0.5759 GB, free: 90.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.7895, allocations: 10.06 kB / 0.5759 GB, free: 90.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.7908, allocations: 0.5702 MB / 0.5765 GB, free: 90.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.7924, allocations: 368.2 kB / 0.5769 GB, free: 90.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005924/0.7983, allocations: 6.061 MB / 0.5828 GB, free: 88.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.7998, allocations: 86.12 kB / 0.5829 GB, free: 88.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.7999, allocations: 62.75 kB / 0.5829 GB, free: 88.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002665/0.8002, allocations: 144.9 kB / 0.5831 GB, free: 88.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002528/0.8004, allocations: 178.5 kB / 0.5832 GB, free: 88.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00351/0.8039, allocations: 2.39 MB / 0.5856 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.804, allocations: 16.31 kB / 0.5856 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.804, allocations: 6.688 kB / 0.5856 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.804, allocations: 9.094 kB / 0.5856 GB, free: 87.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006663/0.8107, allocations: 4.868 MB / 0.5903 GB, free: 87.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.8107, allocations: 3.25 kB / 0.5903 GB, free: 87.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.8117, allocations: 242.9 kB / 0.5906 GB, free: 87.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001405/0.8131, allocations: 0.6297 MB / 0.5912 GB, free: 87.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/0.8132, allocations: 16.28 kB / 0.5912 GB, free: 87.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006651/0.8198, allocations: 7.73 MB / 0.5988 GB, free: 83.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.8199, allocations: 3.188 kB / 0.5988 GB, free: 83.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004733/0.8246, allocations: 3.713 MB / 0.6024 GB, free: 83.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008486/0.8255, allocations: 443.4 kB / 0.6028 GB, free: 83.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002416/0.8258, allocations: 12.92 kB / 0.6028 GB, free: 83.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008964/0.8267, allocations: 74.56 kB / 0.6029 GB, free: 83.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002742/0.8269, allocations: 137.2 kB / 0.603 GB, free: 83.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.827, allocations: 48.75 kB / 0.6031 GB, free: 83.08 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001257/0.8283, allocations: 0.9567 MB / 0.604 GB, free: 82.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8283, allocations: 0 / 0.604 GB, free: 82.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001661/0.83, allocations: 0.4964 MB / 0.6045 GB, free: 82.97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004909/0.8305, allocations: 303.1 kB / 0.6048 GB, free: 82.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003138/0.8336, allocations: 2.391 MB / 0.6071 GB, free: 82.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.8336, allocations: 0 / 0.6071 GB, free: 82.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002041/0.8357, allocations: 1.576 MB / 0.6086 GB, free: 82.17 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.8375, allocations: 349.9 kB / 0.609 GB, free: 82.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006891/0.8444, allocations: 4.062 MB / 0.6129 GB, free: 80.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/0.8461, allocations: 2.062 MB / 0.615 GB, free: 79.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001506/0.8476, allocations: 416.7 kB / 0.6154 GB, free: 79.61 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.848, allocations: 121.3 kB / 0.6155 GB, free: 79.61 MB / 442.7 MB Notification: Performance of SimCode: time 6.62e-07/0.848, allocations: 5 kB / 0.6155 GB, free: 79.6 MB / 442.7 MB Notification: Performance of Templates: time 0.04102/0.889, allocations: 24.6 MB / 0.6395 GB, free: 78.4 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_DOL/SMR_DOL.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches