Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.275/1.275, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008287/0.0008288, allocations: 87.23 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.589e-05/2.591e-05, allocations: 4 kB / 350.5 MB, free: 2.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09215, allocations: 51.48 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3241/0.4163, allocations: 106.5 MB / 0.4966 GB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.4165, allocations: 85.77 kB / 0.4967 GB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1236/0.5402, allocations: 46.43 MB / 0.542 GB, free: 2.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.5402, allocations: 0 / 0.542 GB, free: 2.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001761/0.5404, allocations: 63.88 kB / 0.5421 GB, free: 2.008 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005285/0.5457, allocations: 2.266 MB / 0.5443 GB, free: 15.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.5457, allocations: 12.03 kB / 0.5443 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/0.5468, allocations: 300.7 kB / 0.5446 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003236/0.5501, allocations: 1.592 MB / 0.5462 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.5502, allocations: 168.2 kB / 0.5463 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.5506, allocations: 204.7 kB / 0.5465 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004418/0.555, allocations: 2.703 MB / 0.5492 GB, free: 10.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.541e-05/0.5551, allocations: 15.78 kB / 0.5492 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.5553, allocations: 91.98 kB / 0.5493 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.5554, allocations: 100.2 kB / 0.5494 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003492/0.5589, allocations: 2.121 MB / 0.5514 GB, free: 8.168 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01282/0.5718, allocations: 8.627 MB / 0.5599 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.5739, allocations: 1.678 MB / 0.5615 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/0.575, allocations: 0.7887 MB / 0.5623 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.5754, allocations: 215.2 kB / 0.5625 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.5754, allocations: 43.56 kB / 0.5625 GB, free: 12.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 3.025e-06/0.5754, allocations: 0 / 0.5625 GB, free: 12.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.01278/0.5882, allocations: 5.991 MB / 0.5684 GB, free: 6.371 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.5883, allocations: 64.41 kB / 0.5684 GB, free: 6.297 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.5899, allocations: 1.233 MB / 0.5696 GB, free: 5.055 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.984e-05/0.59, allocations: 45.7 kB / 0.5697 GB, free: 5.004 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006654/0.5906, allocations: 1.03 MB / 0.5707 GB, free: 3.961 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/0.591, allocations: 437.6 kB / 0.5711 GB, free: 3.527 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.5911, allocations: 32 kB / 0.5711 GB, free: 3.496 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5912, allocations: 369.9 kB / 0.5715 GB, free: 3.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.5922, allocations: 0.6951 MB / 0.5722 GB, free: 2.434 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.5935, allocations: 1.068 MB / 0.5732 GB, free: 1.203 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.5947, allocations: 0.8793 MB / 0.5741 GB, free: 336 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.5947, allocations: 7.953 kB / 0.5741 GB, free: 328 kB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.2056/0.8003, allocations: 2.503 MB / 0.5765 GB, free: 93.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.042e-05/0.8004, allocations: 9.375 kB / 0.5765 GB, free: 93.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.8004, allocations: 10.61 kB / 0.5765 GB, free: 93.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.8017, allocations: 0.5819 MB / 0.5771 GB, free: 93.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.8029, allocations: 342.2 kB / 0.5774 GB, free: 93.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006181/0.8091, allocations: 6.32 MB / 0.5836 GB, free: 90.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/0.8104, allocations: 113.5 kB / 0.5837 GB, free: 90.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.8105, allocations: 59.75 kB / 0.5838 GB, free: 90.98 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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.0002271/0.8107, allocations: 186.9 kB / 0.5839 GB, free: 90.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/0.811, allocations: 166.1 kB / 0.5841 GB, free: 90.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/0.8147, allocations: 2.295 MB / 0.5863 GB, free: 90.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.8147, allocations: 13.06 kB / 0.5863 GB, free: 90.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.8147, allocations: 3.969 kB / 0.5864 GB, free: 90.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.8147, allocations: 10.11 kB / 0.5864 GB, free: 90.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006689/0.8214, allocations: 4.728 MB / 0.591 GB, free: 90.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.8215, allocations: 3.875 kB / 0.591 GB, free: 90.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008266/0.8223, allocations: 202.3 kB / 0.5912 GB, free: 90.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.8237, allocations: 0.6346 MB / 0.5918 GB, free: 90.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-05/0.8238, allocations: 30.55 kB / 0.5918 GB, free: 90.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007263/0.8311, allocations: 8.052 MB / 0.5997 GB, free: 86.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.8311, allocations: 6.938 kB / 0.5997 GB, free: 86.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004186/0.8353, allocations: 3.423 MB / 0.603 GB, free: 85.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.836, allocations: 398.2 kB / 0.6034 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.8362, allocations: 33 kB / 0.6034 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008522/0.837, allocations: 99.33 kB / 0.6035 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.8372, allocations: 103.2 kB / 0.6036 GB, free: 85.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-05/0.8373, allocations: 36.3 kB / 0.6037 GB, free: 85.65 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001106/0.8384, allocations: 0.9444 MB / 0.6046 GB, free: 85.53 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8384, allocations: 0 / 0.6046 GB, free: 85.53 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00135/0.8398, allocations: 0.5234 MB / 0.6051 GB, free: 85.53 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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.0004286/0.8402, allocations: 314.2 kB / 0.6054 GB, free: 85.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003233/0.8435, allocations: 2.264 MB / 0.6076 GB, free: 85.07 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8435, allocations: 1.125 kB / 0.6076 GB, free: 85.07 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.8456, allocations: 1.473 MB / 0.6091 GB, free: 84.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.8472, allocations: 390.9 kB / 0.6094 GB, free: 84.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005503/0.8527, allocations: 3.708 MB / 0.6131 GB, free: 82.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.8545, allocations: 1.867 MB / 0.6149 GB, free: 81.97 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001145/0.8556, allocations: 358.8 kB / 0.6152 GB, free: 81.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.8559, allocations: 112.6 kB / 0.6153 GB, free: 81.92 MB / 442.7 MB Notification: Performance of SimCode: time 7.82e-07/0.8559, allocations: 0 / 0.6153 GB, free: 81.92 MB / 442.7 MB Notification: Performance of Templates: time 0.0418/0.8977, allocations: 27.37 MB / 0.6421 GB, free: 80.59 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches