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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.strayReluctance.port_p.Phi.im|smr3.stator.strayReluctance.port_p.Phi.re|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|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.is.1.|smr3.is.2.|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.strayReluctance.port_p.Phi.im|smr3.stator.strayReluctance.port_p.Phi.re|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|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001484/0.001483, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.882/1.882, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001099/0.001098, allocations: 100.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005282/0.0005283, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3423, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2199/0.5623, allocations: 113.4 MB / 487.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004504/0.5628, allocations: 91.94 kB / 488 MB, free: 15.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8687/1.432, allocations: 159.4 MB / 0.6322 GB, free: 13.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.667e-06/1.432, allocations: 0 / 0.6322 GB, free: 13.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.00075/1.432, allocations: 175.8 kB / 0.6323 GB, free: 13.06 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03654/1.469, allocations: 6.984 MB / 0.6392 GB, free: 5.984 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/1.469, allocations: 12.03 kB / 0.6392 GB, free: 5.973 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01357/1.483, allocations: 1.525 MB / 0.6407 GB, free: 4.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3513/1.834, allocations: 5.768 MB / 0.6463 GB, free: 37.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007262/1.835, allocations: 0.5139 MB / 0.6468 GB, free: 37.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00313/1.838, allocations: 0.6863 MB / 0.6475 GB, free: 37.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03667/1.875, allocations: 9.223 MB / 0.6565 GB, free: 36.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004703/1.875, allocations: 7.062 kB / 0.6565 GB, free: 36.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002696/1.878, allocations: 289.5 kB / 0.6568 GB, free: 36.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000446/1.878, allocations: 321.2 kB / 0.6571 GB, free: 36.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02647/1.905, allocations: 7.58 MB / 0.6645 GB, free: 36.51 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07726/1.982, allocations: 28.86 MB / 0.6927 GB, free: 31.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02215/2.004, allocations: 16.6 MB / 0.7089 GB, free: 17.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01823/2.023, allocations: 6.629 MB / 0.7153 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.203e-05/2.023, allocations: 68.28 kB / 0.7154 GB, free: 14.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=281): time 6.903e-06/2.023, allocations: 0 / 0.7154 GB, free: 14.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=289): time 0.04289/2.066, allocations: 12.02 MB / 0.7271 GB, free: 8.949 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/2.066, allocations: 80.5 kB / 0.7272 GB, free: 8.883 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007168/2.073, allocations: 2.926 MB / 0.7301 GB, free: 7.797 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000692/2.074, allocations: 77.64 kB / 0.7302 GB, free: 7.727 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002255/2.076, allocations: 2.812 MB / 0.7329 GB, free: 5.582 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001396/2.077, allocations: 0.9854 MB / 0.7339 GB, free: 4.816 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003834/2.078, allocations: 70.05 kB / 0.7339 GB, free: 4.762 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/2.078, allocations: 451.8 kB / 0.7344 GB, free: 4.391 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003943/2.082, allocations: 1.474 MB / 0.7358 GB, free: 3.816 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004704/2.087, allocations: 2.452 MB / 0.7382 GB, free: 2.059 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/2.092, allocations: 1.925 MB / 0.7401 GB, free: 1.211 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-05/2.092, allocations: 7.312 kB / 0.7401 GB, free: 1.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.01415/2.106, allocations: 4.744 MB / 0.7447 GB, free: 15.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.514e-05/2.106, allocations: 18.5 kB / 0.7447 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.248e-05/2.106, allocations: 30.16 kB / 0.7448 GB, free: 15.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/2.108, allocations: 429 kB / 0.7452 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006425/2.114, allocations: 0.8434 MB / 0.746 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/2.125, allocations: 7.714 MB / 0.7535 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004937/2.13, allocations: 169.5 kB / 0.7537 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000677/2.131, allocations: 148.5 kB / 0.7538 GB, free: 8.973 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (422): * Single equations (assignments): 416 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006203/2.137, allocations: 2.08 MB / 0.7559 GB, free: 7.914 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001259/2.139, allocations: 372.5 kB / 0.7562 GB, free: 7.727 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01329/2.152, allocations: 4.533 MB / 0.7606 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.202e-05/2.152, allocations: 26.56 kB / 0.7607 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.592e-05/2.152, allocations: 14.41 kB / 0.7607 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.659e-05/2.152, allocations: 14.02 kB / 0.7607 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03287/2.185, allocations: 10.78 MB / 0.7712 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.42e-05/2.185, allocations: 8 kB / 0.7712 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004403/2.19, allocations: 462.1 kB / 0.7717 GB, free: 468 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006789/2.196, allocations: 0.9563 MB / 0.7726 GB, free: 0 / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00154/2.198, allocations: 99.95 kB / 0.7727 GB, free: 0 / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03028/2.228, allocations: 16.34 MB / 0.7887 GB, free: 0 / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.636e-05/2.228, allocations: 10.92 kB / 0.7887 GB, free: 0 / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01951/2.248, allocations: 6.851 MB / 0.7954 GB, free: 9.582 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003188/2.251, allocations: 0.7759 MB / 0.7961 GB, free: 8.863 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/2.253, allocations: 67.89 kB / 0.7962 GB, free: 8.801 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004135/2.257, allocations: 158 kB / 0.7963 GB, free: 8.676 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009989/2.258, allocations: 220 kB / 0.7965 GB, free: 8.543 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003352/2.258, allocations: 83.69 kB / 0.7966 GB, free: 8.469 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00886/2.267, allocations: 2.234 MB / 0.7988 GB, free: 6.602 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.733e-06/2.267, allocations: 0 / 0.7988 GB, free: 6.602 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01163/2.279, allocations: 1.209 MB / 0.8 GB, free: 5.402 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (221): * Single equations (assignments): 214 * 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 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 12,(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.00217/2.281, allocations: 0.507 MB / 0.8005 GB, free: 5.016 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01897/2.3, allocations: 4.327 MB / 0.8047 GB, free: 1.121 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.809e-05/2.3, allocations: 0 / 0.8047 GB, free: 1.121 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009624/2.31, allocations: 3.007 MB / 0.8076 GB, free: 14.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007822/2.318, allocations: 0.922 MB / 0.8085 GB, free: 13.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04112/2.359, allocations: 14.7 MB / 0.8229 GB, free: 128 kB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3404/2.699, allocations: 4.395 MB / 0.8272 GB, free: 88.67 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001998/2.701, allocations: 290.7 kB / 0.8275 GB, free: 88.67 MB / 474.7 MB Notification: Performance of SimCode: time 1.312e-06/2.701, allocations: 0 / 0.8275 GB, free: 88.67 MB / 474.7 MB Notification: Performance of Templates: time 0.769/3.47, allocations: 287 MB / 1.108 GB, free: 56.02 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_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_MultiPhase/SMR_Inverter_MultiPhase.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches