Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009604/0.0009605, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007881/0.0007881, allocations: 98.08 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.485e-05/2.488e-05, allocations: 0 / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09052/0.09056, allocations: 50.42 MB / 394.3 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3163/0.4069, allocations: 105.7 MB / 499.9 MB, free: 13.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.4072, allocations: 95.72 kB / 0.4883 GB, free: 13.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1223/0.5295, allocations: 46.32 MB / 0.5335 GB, free: 15.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5296, allocations: 0 / 0.5335 GB, free: 15.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.5297, allocations: 63.88 kB / 0.5336 GB, free: 15.07 MB / 426.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.004227/0.5339, allocations: 2.255 MB / 0.5358 GB, free: 12.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.534, allocations: 12.02 kB / 0.5358 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007799/0.5348, allocations: 296.8 kB / 0.5361 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003105/0.5379, allocations: 1.592 MB / 0.5376 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.538, allocations: 156.2 kB / 0.5378 GB, free: 10.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003198/0.5383, allocations: 219.9 kB / 0.538 GB, free: 10.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/0.5428, allocations: 2.703 MB / 0.5406 GB, free: 7.586 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/0.5429, allocations: 11.89 kB / 0.5406 GB, free: 7.574 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.5431, allocations: 95.98 kB / 0.5407 GB, free: 7.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.789e-05/0.5432, allocations: 92.19 kB / 0.5408 GB, free: 7.387 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003478/0.5467, allocations: 2.129 MB / 0.5429 GB, free: 5.242 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2187/0.7654, allocations: 8.606 MB / 0.5513 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.7676, allocations: 1.686 MB / 0.553 GB, free: 99.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.7687, allocations: 0.788 MB / 0.5537 GB, free: 99.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.769, allocations: 222.3 kB / 0.5539 GB, free: 99.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.7691, allocations: 52.77 kB / 0.554 GB, free: 99.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 2.956e-06/0.7691, allocations: 0 / 0.554 GB, free: 99.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01346/0.7825, allocations: 5.971 MB / 0.5598 GB, free: 99.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.7826, allocations: 68.77 kB / 0.5599 GB, free: 98.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/0.7846, allocations: 1.229 MB / 0.5611 GB, free: 98.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/0.7847, allocations: 45.61 kB / 0.5611 GB, free: 98.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006218/0.7853, allocations: 1.037 MB / 0.5621 GB, free: 98.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003127/0.7856, allocations: 443.4 kB / 0.5626 GB, free: 98.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.7857, allocations: 27.94 kB / 0.5626 GB, free: 98.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.7858, allocations: 365.9 kB / 0.5629 GB, free: 97.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.787, allocations: 0.6975 MB / 0.5636 GB, free: 97.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.7885, allocations: 1.07 MB / 0.5647 GB, free: 97.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00132/0.7898, allocations: 0.8768 MB / 0.5655 GB, free: 97.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.7898, allocations: 4.125 kB / 0.5655 GB, free: 97.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004228/0.794, allocations: 2.502 MB / 0.568 GB, free: 97.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.7941, allocations: 8.875 kB / 0.568 GB, free: 97.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.389e-05/0.7941, allocations: 12.03 kB / 0.568 GB, free: 97.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.7956, allocations: 0.584 MB / 0.5686 GB, free: 97.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.7969, allocations: 340.3 kB / 0.5689 GB, free: 97.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006334/0.8033, allocations: 6.325 MB / 0.5751 GB, free: 94.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.8048, allocations: 112.8 kB / 0.5752 GB, free: 94.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.8049, allocations: 58.41 kB / 0.5752 GB, free: 94.41 MB / 426.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.0002737/0.8052, allocations: 192.3 kB / 0.5754 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.8055, allocations: 161.8 kB / 0.5756 GB, free: 94.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/0.8088, allocations: 2.294 MB / 0.5778 GB, free: 93.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.8088, allocations: 15.45 kB / 0.5778 GB, free: 93.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8089, allocations: 3.938 kB / 0.5778 GB, free: 93.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.8089, allocations: 11.48 kB / 0.5778 GB, free: 93.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006682/0.8156, allocations: 4.725 MB / 0.5824 GB, free: 91.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.8156, allocations: 0 / 0.5824 GB, free: 91.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008301/0.8164, allocations: 213.6 kB / 0.5826 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/0.8179, allocations: 0.6351 MB / 0.5833 GB, free: 91.28 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.818, allocations: 36.5 kB / 0.5833 GB, free: 91.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00679/0.8248, allocations: 8.033 MB / 0.5911 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.8248, allocations: 7.938 kB / 0.5912 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004215/0.829, allocations: 3.433 MB / 0.5945 GB, free: 84.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009443/0.83, allocations: 402.3 kB / 0.5949 GB, free: 83.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.8303, allocations: 28.16 kB / 0.5949 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009123/0.8312, allocations: 94.8 kB / 0.595 GB, free: 83.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.8315, allocations: 102.6 kB / 0.5951 GB, free: 83.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.8316, allocations: 44.97 kB / 0.5951 GB, free: 83.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001181/0.8328, allocations: 0.949 MB / 0.5961 GB, free: 83.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8328, allocations: 0 / 0.5961 GB, free: 83.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001493/0.8343, allocations: 0.5153 MB / 0.5966 GB, free: 83.4 MB / 426.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.0004401/0.8347, allocations: 313.9 kB / 0.5969 GB, free: 83.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.8377, allocations: 2.261 MB / 0.5991 GB, free: 82.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.8377, allocations: 0 / 0.5991 GB, free: 82.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.8397, allocations: 1.487 MB / 0.6005 GB, free: 81.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.8415, allocations: 375.7 kB / 0.6009 GB, free: 81.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005638/0.8472, allocations: 3.708 MB / 0.6045 GB, free: 79.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.8483, allocations: 1.868 MB / 0.6063 GB, free: 78.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001195/0.8495, allocations: 356.9 kB / 0.6067 GB, free: 78.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.8498, allocations: 118.9 kB / 0.6068 GB, free: 78.88 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/0.8498, allocations: 4 kB / 0.6068 GB, free: 78.88 MB / 426.7 MB Notification: Performance of Templates: time 0.03737/0.8872, allocations: 27.28 MB / 0.6334 GB, free: 64.73 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches