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.0009894/0.0009894, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 226.5 MB / 245.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008065/0.0008066, allocations: 96.81 kB / 297.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000212/0.0002124, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1946, allocations: 51.28 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3098, allocations: 106.6 MB / 0.5039 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.3101, allocations: 88.77 kB / 0.504 GB, free: 0.793 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2627/0.5728, allocations: 46.36 MB / 0.5492 GB, free: 64.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5728, allocations: 0 / 0.5492 GB, free: 64.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001704/0.573, allocations: 55.94 kB / 0.5493 GB, free: 64.59 MB / 378.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.005366/0.5784, allocations: 2.491 MB / 0.5517 GB, free: 62.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.5784, allocations: 12.03 kB / 0.5517 GB, free: 62.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001354/0.5798, allocations: 305.6 kB / 0.552 GB, free: 61.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003378/0.5832, allocations: 1.655 MB / 0.5536 GB, free: 60 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001053/0.5833, allocations: 156.6 kB / 0.5538 GB, free: 59.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004564/0.5838, allocations: 212.3 kB / 0.554 GB, free: 59.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004539/0.5883, allocations: 2.797 MB / 0.5567 GB, free: 56.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-05/0.5884, allocations: 12.09 kB / 0.5567 GB, free: 56.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/0.5886, allocations: 91.94 kB / 0.5568 GB, free: 56.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.708e-05/0.5887, allocations: 100.2 kB / 0.5569 GB, free: 56.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00365/0.5924, allocations: 2.246 MB / 0.5591 GB, free: 54.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01256/0.6049, allocations: 8.632 MB / 0.5675 GB, free: 45.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.6071, allocations: 1.751 MB / 0.5692 GB, free: 43.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.6082, allocations: 0.8276 MB / 0.57 GB, free: 42.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/0.6085, allocations: 219.1 kB / 0.5703 GB, free: 42.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.6085, allocations: 51.5 kB / 0.5703 GB, free: 42.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.096e-06/0.6085, allocations: 0 / 0.5703 GB, free: 42.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.01368/0.6222, allocations: 7.054 MB / 0.5772 GB, free: 35.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.6223, allocations: 64.41 kB / 0.5773 GB, free: 35.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003132/0.6254, allocations: 1.41 MB / 0.5786 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.6256, allocations: 53.69 kB / 0.5787 GB, free: 33.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009172/0.6266, allocations: 1.033 MB / 0.5797 GB, free: 32.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005369/0.6271, allocations: 441.6 kB / 0.5801 GB, free: 32.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.6273, allocations: 32 kB / 0.5801 GB, free: 32.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.6274, allocations: 369.9 kB / 0.5805 GB, free: 31.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001861/0.6293, allocations: 0.7457 MB / 0.5812 GB, free: 31.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.6313, allocations: 1.122 MB / 0.5823 GB, free: 29.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003897/0.6353, allocations: 1.987 MB / 0.5843 GB, free: 27.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.6353, allocations: 4 kB / 0.5843 GB, free: 27.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.006789/0.6421, allocations: 2.606 MB / 0.5868 GB, free: 24.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.6421, allocations: 15.94 kB / 0.5868 GB, free: 24.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.6422, allocations: 8 kB / 0.5868 GB, free: 24.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002513/0.6447, allocations: 0.5765 MB / 0.5874 GB, free: 24.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.6471, allocations: 343.5 kB / 0.5877 GB, free: 24.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.6583, allocations: 6.335 MB / 0.5939 GB, free: 17.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/0.6606, allocations: 107.9 kB / 0.594 GB, free: 17.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002481/0.6609, allocations: 63.92 kB / 0.5941 GB, free: 17.25 MB / 378.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 () * Number of clocked 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.001951/0.6629, allocations: 0.6964 MB / 0.5948 GB, free: 16.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005434/0.6634, allocations: 166 kB / 0.5949 GB, free: 16.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006888/0.6703, allocations: 2.386 MB / 0.5972 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.6704, allocations: 12 kB / 0.5973 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.6704, allocations: 8 kB / 0.5973 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.6704, allocations: 3.984 kB / 0.5973 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/0.6841, allocations: 4.826 MB / 0.602 GB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.6841, allocations: 4 kB / 0.602 GB, free: 9.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.6858, allocations: 212 kB / 0.6022 GB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003057/0.6889, allocations: 0.6431 MB / 0.6028 GB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/0.6891, allocations: 31.98 kB / 0.6028 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01352/0.7026, allocations: 8.072 MB / 0.6107 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.7027, allocations: 4 kB / 0.6107 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/0.7134, allocations: 3.427 MB / 0.6141 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/0.715, allocations: 402.8 kB / 0.6145 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005885/0.7156, allocations: 31.98 kB / 0.6145 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00194/0.7176, allocations: 95.89 kB / 0.6146 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004577/0.7181, allocations: 100.8 kB / 0.6147 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001802/0.7183, allocations: 47.86 kB / 0.6147 GB, free: 11.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002821/0.7211, allocations: 0.9615 MB / 0.6157 GB, free: 10.51 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7211, allocations: 0 / 0.6157 GB, free: 10.51 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003189/0.7243, allocations: 0.5234 MB / 0.6162 GB, free: 9.984 MB / 394.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 () * Number of clocked 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,72.2%) 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.0009417/0.7253, allocations: 309.1 kB / 0.6165 GB, free: 9.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007118/0.7325, allocations: 2.368 MB / 0.6188 GB, free: 7.262 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.7325, allocations: 0 / 0.6188 GB, free: 7.262 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004863/0.7374, allocations: 1.529 MB / 0.6203 GB, free: 5.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/0.742, allocations: 400.4 kB / 0.6207 GB, free: 5.309 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.7556, allocations: 5.401 MB / 0.6259 GB, free: 15.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002948/0.7586, allocations: 1.819 MB / 0.6277 GB, free: 14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002356/0.761, allocations: 362 kB / 0.6281 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006878/0.7617, allocations: 111.4 kB / 0.6282 GB, free: 13.53 MB / 410.7 MB Notification: Performance of SimCode: time 5.38e-06/0.7618, allocations: 0 / 0.6282 GB, free: 13.53 MB / 410.7 MB Notification: Performance of Templates: time 0.0575/0.8193, allocations: 27.31 MB / 0.6548 GB, free: 2.41 MB / 426.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/jenkins1/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