Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.is.1.|smrE.is.2.|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.is.1.|smrM.is.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001338/0.001338, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000778/0.000778, allocations: 86.7 kB / 268 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.02e-05, allocations: 0 / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07797/0.078, allocations: 47.58 MB / 370 MB, free: 1.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4405/0.5185, allocations: 125 MB / 495.1 MB, free: 1.004 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5189, allocations: 87.95 kB / 495.2 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4805/0.9994, allocations: 116 MB / 0.5968 GB, free: 86.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.9994, allocations: 0 / 0.5968 GB, free: 86.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004077/0.9998, allocations: 131.8 kB / 0.5969 GB, free: 86.68 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01368/1.014, allocations: 4.893 MB / 0.6017 GB, free: 82.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.014, allocations: 8.031 kB / 0.6017 GB, free: 82.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005415/1.019, allocations: 0.9495 MB / 0.6026 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009874/1.029, allocations: 4.401 MB / 0.6069 GB, free: 77.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/1.029, allocations: 385.3 kB / 0.6073 GB, free: 76.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001385/1.031, allocations: 0.4949 MB / 0.6078 GB, free: 76.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/1.045, allocations: 6.571 MB / 0.6142 GB, free: 69.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001835/1.045, allocations: 15.83 kB / 0.6142 GB, free: 69.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006234/1.046, allocations: 214.7 kB / 0.6144 GB, free: 69.49 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002061/1.046, allocations: 242.2 kB / 0.6146 GB, free: 69.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/1.058, allocations: 5.242 MB / 0.6198 GB, free: 64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03452/1.093, allocations: 21.14 MB / 0.6404 GB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006524/1.099, allocations: 8.482 MB / 0.6487 GB, free: 33.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003055/1.102, allocations: 2.006 MB / 0.6506 GB, free: 31.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/1.113, allocations: 6.015 MB / 0.6565 GB, free: 25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/1.113, allocations: 56.56 kB / 0.6566 GB, free: 24.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=208): time 5.2e-06/1.113, allocations: 0 / 0.6566 GB, free: 24.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=232): time 0.0193/1.132, allocations: 9.283 MB / 0.6656 GB, free: 15.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/1.132, allocations: 77.41 kB / 0.6657 GB, free: 15.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/1.136, allocations: 2.5 MB / 0.6682 GB, free: 12.99 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003533/1.137, allocations: 69.7 kB / 0.6682 GB, free: 12.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/1.138, allocations: 2.34 MB / 0.6705 GB, free: 10.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005865/1.138, allocations: 0.7983 MB / 0.6713 GB, free: 9.766 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/1.138, allocations: 60 kB / 0.6713 GB, free: 9.707 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/1.139, allocations: 420.1 kB / 0.6717 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/1.14, allocations: 1.252 MB / 0.673 GB, free: 8.035 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/1.142, allocations: 2.117 MB / 0.675 GB, free: 5.531 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002031/1.144, allocations: 1.63 MB / 0.6766 GB, free: 3.875 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/1.144, allocations: 8 kB / 0.6766 GB, free: 3.867 MB / 410.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.006828/1.151, allocations: 4.48 MB / 0.681 GB, free: 15.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.335e-05/1.151, allocations: 23.94 kB / 0.681 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.73e-05/1.151, allocations: 24 kB / 0.6811 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001804/1.153, allocations: 0.7189 MB / 0.6818 GB, free: 14.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/1.156, allocations: 0.6903 MB / 0.6824 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/1.167, allocations: 9.382 MB / 0.6916 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00414/1.171, allocations: 187.8 kB / 0.6918 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009687/1.172, allocations: 128 kB / 0.6919 GB, free: 3.598 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001458/1.173, allocations: 303.9 kB / 0.6922 GB, free: 3.293 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001354/1.175, allocations: 320.1 kB / 0.6925 GB, free: 2.977 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2827/1.458, allocations: 3.987 MB / 0.6964 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/1.458, allocations: 25.28 kB / 0.6964 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/1.458, allocations: 10.81 kB / 0.6964 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-05/1.458, allocations: 11.53 kB / 0.6964 GB, free: 91.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0168/1.475, allocations: 8.63 MB / 0.7049 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/1.475, allocations: 7.938 kB / 0.7049 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001818/1.476, allocations: 379.8 kB / 0.7052 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/1.479, allocations: 0.9422 MB / 0.7061 GB, free: 90.32 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/1.479, allocations: 60.12 kB / 0.7062 GB, free: 90.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/1.493, allocations: 15.46 MB / 0.7213 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.493, allocations: 3.938 kB / 0.7213 GB, free: 81.36 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008108/1.501, allocations: 5.908 MB / 0.7271 GB, free: 80.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001749/1.503, allocations: 0.6678 MB / 0.7277 GB, free: 80.33 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003975/1.504, allocations: 57.73 kB / 0.7278 GB, free: 80.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/1.505, allocations: 153.4 kB / 0.7279 GB, free: 80.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003755/1.506, allocations: 177.8 kB / 0.7281 GB, free: 80.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.506, allocations: 65.59 kB / 0.7282 GB, free: 80.32 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002753/1.508, allocations: 1.889 MB / 0.73 GB, free: 80.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.508, allocations: 2.812 kB / 0.73 GB, free: 80.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003076/1.512, allocations: 1.013 MB / 0.731 GB, free: 80.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * 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): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008917/1.512, allocations: 0.519 MB / 0.7315 GB, free: 80.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005211/1.518, allocations: 3.949 MB / 0.7354 GB, free: 79.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.518, allocations: 0 / 0.7354 GB, free: 79.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003432/1.521, allocations: 2.673 MB / 0.738 GB, free: 77.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003979/1.525, allocations: 0.7717 MB / 0.7387 GB, free: 77.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/1.54, allocations: 7.876 MB / 0.7464 GB, free: 74.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003537/1.543, allocations: 3.412 MB / 0.7497 GB, free: 73.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003441/1.547, allocations: 0.7463 MB / 0.7505 GB, free: 73.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006476/1.547, allocations: 215.4 kB / 0.7507 GB, free: 73.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.343e-06/1.547, allocations: 0 / 0.7507 GB, free: 73.15 MB / 426.7 MB Notification: Performance of Templates: time 0.07628/1.624, allocations: 49.76 MB / 0.7993 GB, free: 45.04 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches