Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001352/0.001352, allocations: 181.7 kB / 17.41 MB, free: 4.27 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.35/1.35, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007794/0.0007794, allocations: 93.34 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003137/0.0003137, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2264, allocations: 47.58 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.3559, allocations: 125.5 MB / 0.4895 GB, free: 3.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.3562, allocations: 95.94 kB / 0.4896 GB, free: 2.957 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3947/0.7509, allocations: 115.7 MB / 0.6026 GB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.7509, allocations: 8 kB / 0.6026 GB, free: 14.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000425/0.7514, allocations: 135.8 kB / 0.6027 GB, free: 14.52 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01378/0.7652, allocations: 5.311 MB / 0.6079 GB, free: 9.121 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.7652, allocations: 12.02 kB / 0.6079 GB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004839/0.77, allocations: 0.9543 MB / 0.6088 GB, free: 8.148 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008313/0.7784, allocations: 3.863 MB / 0.6126 GB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003366/0.7788, allocations: 386.7 kB / 0.613 GB, free: 3.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/0.7804, allocations: 0.5003 MB / 0.6135 GB, free: 3.328 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/0.7962, allocations: 6.737 MB / 0.62 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002483/0.7965, allocations: 15.78 kB / 0.6201 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001452/0.7979, allocations: 220 kB / 0.6203 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002747/0.7982, allocations: 234.2 kB / 0.6205 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01339/0.8116, allocations: 5.451 MB / 0.6258 GB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04301/0.8547, allocations: 21.16 MB / 0.6465 GB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1992/1.054, allocations: 8.606 MB / 0.6549 GB, free: 53.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003247/1.057, allocations: 2.086 MB / 0.6569 GB, free: 53.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/1.068, allocations: 6.035 MB / 0.6628 GB, free: 52.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/1.068, allocations: 58.84 kB / 0.6629 GB, free: 52.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=210): time 6.081e-06/1.068, allocations: 0 / 0.6629 GB, free: 52.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.02227/1.09, allocations: 11.83 MB / 0.6744 GB, free: 50.64 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/1.09, allocations: 76.03 kB / 0.6745 GB, free: 50.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004961/1.095, allocations: 2.851 MB / 0.6773 GB, free: 50.33 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004715/1.095, allocations: 62.95 kB / 0.6773 GB, free: 50.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/1.097, allocations: 2.342 MB / 0.6796 GB, free: 49.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000819/1.098, allocations: 0.8087 MB / 0.6804 GB, free: 49.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/1.098, allocations: 62.09 kB / 0.6805 GB, free: 49.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/1.098, allocations: 426.6 kB / 0.6809 GB, free: 48.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001992/1.1, allocations: 1.323 MB / 0.6822 GB, free: 48.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00261/1.103, allocations: 2.223 MB / 0.6843 GB, free: 47.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005663/1.108, allocations: 3.773 MB / 0.688 GB, free: 46.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.659e-05/1.108, allocations: 8.125 kB / 0.688 GB, free: 46.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=381) (initialization): time 0.008234/1.117, allocations: 4.64 MB / 0.6926 GB, free: 46.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/1.117, allocations: 26.52 kB / 0.6926 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.384e-05/1.117, allocations: 27.25 kB / 0.6926 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/1.118, allocations: 0.7174 MB / 0.6933 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/1.121, allocations: 0.7 MB / 0.694 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008239/1.129, allocations: 9.407 MB / 0.7032 GB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003005/1.132, allocations: 193.6 kB / 0.7034 GB, free: 40.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00056/1.133, allocations: 132.4 kB / 0.7035 GB, free: 40.95 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (345): * Single equations (assignments): 339 * 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.003451/1.136, allocations: 1.521 MB / 0.705 GB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.137, allocations: 320.3 kB / 0.7053 GB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007427/1.145, allocations: 4.161 MB / 0.7093 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/1.145, allocations: 27.72 kB / 0.7094 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.804e-05/1.145, allocations: 13.44 kB / 0.7094 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.719e-05/1.145, allocations: 11.67 kB / 0.7094 GB, free: 38.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/1.161, allocations: 8.806 MB / 0.718 GB, free: 34.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/1.161, allocations: 6.75 kB / 0.718 GB, free: 34.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/1.163, allocations: 389 kB / 0.7184 GB, free: 34.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002353/1.165, allocations: 0.9413 MB / 0.7193 GB, free: 34.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002586/1.166, allocations: 60.12 kB / 0.7193 GB, free: 34.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/1.179, allocations: 15.51 MB / 0.7345 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.179, allocations: 3.719 kB / 0.7345 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009717/1.189, allocations: 5.891 MB / 0.7403 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/1.191, allocations: 0.6676 MB / 0.7409 GB, free: 19.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/1.192, allocations: 57.84 kB / 0.741 GB, free: 19.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/1.194, allocations: 157.3 kB / 0.7411 GB, free: 19.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005134/1.195, allocations: 173.9 kB / 0.7413 GB, free: 19.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002235/1.195, allocations: 68.95 kB / 0.7413 GB, free: 19.43 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003988/1.199, allocations: 1.926 MB / 0.7432 GB, free: 18.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.199, allocations: 0 / 0.7432 GB, free: 18.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004839/1.204, allocations: 1.019 MB / 0.7442 GB, free: 18.6 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * 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,72.2%) 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.001026/1.205, allocations: 455.3 kB / 0.7447 GB, free: 18.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006416/1.211, allocations: 4.115 MB / 0.7487 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/1.211, allocations: 1.688 kB / 0.7487 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004015/1.215, allocations: 2.759 MB / 0.7514 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005833/1.221, allocations: 0.7991 MB / 0.7521 GB, free: 12.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01807/1.239, allocations: 11.49 MB / 0.7634 GB, free: 2.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006746/1.246, allocations: 3.431 MB / 0.7667 GB, free: 15.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/1.247, allocations: 245.3 kB / 0.767 GB, free: 15.74 MB / 426.7 MB Notification: Performance of SimCode: time 1.253e-06/1.247, allocations: 0 / 0.767 GB, free: 15.74 MB / 426.7 MB Notification: Performance of Templates: time 0.609/1.856, allocations: 226.4 MB / 0.9881 GB, free: 112.2 MB / 474.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches