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.003086/0.003086, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 87.64 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.379e-05/2.386e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.339, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1906/0.5297, allocations: 112.6 MB / 475 MB, free: 5.633 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.5301, allocations: 83.95 kB / 475 MB, free: 5.551 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8285/1.359, allocations: 157.4 MB / 0.6176 GB, free: 23.12 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.475e-06/1.359, allocations: 0 / 0.6176 GB, free: 23.12 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006561/1.359, allocations: 163.8 kB / 0.6178 GB, free: 22.96 MB / 395.1 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.02781/1.387, allocations: 6.423 MB / 0.624 GB, free: 16.45 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/1.387, allocations: 12.03 kB / 0.624 GB, free: 16.44 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01267/1.4, allocations: 1.506 MB / 0.6255 GB, free: 14.92 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02084/1.421, allocations: 5.746 MB / 0.6311 GB, free: 9.098 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005271/1.421, allocations: 228 kB / 0.6313 GB, free: 8.875 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003081/1.424, allocations: 411.8 kB / 0.6317 GB, free: 8.473 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02267/1.447, allocations: 6.905 MB / 0.6385 GB, free: 1.562 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03199/1.479, allocations: 8.035 MB / 0.6463 GB, free: 9.32 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003921/1.48, allocations: 4 kB / 0.6463 GB, free: 9.316 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/1.482, allocations: 4 kB / 0.6463 GB, free: 9.312 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005304/1.483, allocations: 322.2 kB / 0.6466 GB, free: 8.996 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3902/1.873, allocations: 27.53 MB / 0.6735 GB, free: 47.28 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02084/1.894, allocations: 16.27 MB / 0.6894 GB, free: 34.67 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006746/1.901, allocations: 2.739 MB / 0.6921 GB, free: 34.62 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02445/1.925, allocations: 7.525 MB / 0.6994 GB, free: 33.56 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.115e-05/1.925, allocations: 65.42 kB / 0.6995 GB, free: 33.52 MB / 411.1 MB Notification: Performance of pre-optimization done (n=256): time 6.793e-06/1.925, allocations: 0 / 0.6995 GB, free: 33.52 MB / 411.1 MB Notification: Performance of matching and sorting (n=262): time 0.02782/1.953, allocations: 8.088 MB / 0.7074 GB, free: 31.84 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/1.953, allocations: 81.78 kB / 0.7075 GB, free: 31.77 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007629/1.961, allocations: 2.356 MB / 0.7098 GB, free: 31.54 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006498/1.961, allocations: 26.55 kB / 0.7098 GB, free: 31.51 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002877/1.964, allocations: 2.907 MB / 0.7126 GB, free: 30.17 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/1.966, allocations: 0.8687 MB / 0.7135 GB, free: 29.59 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003308/1.966, allocations: 0 / 0.7135 GB, free: 29.59 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002782/1.966, allocations: 445.5 kB / 0.7139 GB, free: 29.28 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003657/1.97, allocations: 1.239 MB / 0.7151 GB, free: 29.27 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004474/1.975, allocations: 2.238 MB / 0.7173 GB, free: 28.08 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006049/1.981, allocations: 1.934 MB / 0.7192 GB, free: 28.03 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.671e-05/1.981, allocations: 11.69 kB / 0.7192 GB, free: 28.03 MB / 411.1 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.01292/1.994, allocations: 4.189 MB / 0.7233 GB, free: 27.69 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.255e-05/1.994, allocations: 21.16 kB / 0.7233 GB, free: 27.69 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.839e-05/1.994, allocations: 35.19 kB / 0.7234 GB, free: 27.69 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/1.996, allocations: 377 kB / 0.7237 GB, free: 27.64 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00609/2.002, allocations: 0.7941 MB / 0.7245 GB, free: 27.64 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007849/2.01, allocations: 7.033 MB / 0.7314 GB, free: 21.71 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004596/2.014, allocations: 100.4 kB / 0.7315 GB, free: 21.7 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008432/2.015, allocations: 149.1 kB / 0.7316 GB, free: 21.68 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (408): * Single equations (assignments): 402 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007676/2.016, allocations: 203.6 kB / 0.7318 GB, free: 21.54 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/2.017, allocations: 332.4 kB / 0.7321 GB, free: 21.37 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/2.029, allocations: 4.043 MB / 0.7361 GB, free: 19.65 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.417e-05/2.03, allocations: 25.16 kB / 0.7361 GB, free: 19.65 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.512e-05/2.03, allocations: 12.81 kB / 0.7361 GB, free: 19.65 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.339e-05/2.03, allocations: 11.44 kB / 0.7361 GB, free: 19.65 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.026/2.056, allocations: 8.797 MB / 0.7447 GB, free: 15.84 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.793e-05/2.056, allocations: 3.375 kB / 0.7447 GB, free: 15.84 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003662/2.059, allocations: 411 kB / 0.7451 GB, free: 15.82 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003572/2.063, allocations: 0.8392 MB / 0.7459 GB, free: 15.54 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000511/2.064, allocations: 32.59 kB / 0.7459 GB, free: 15.53 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02103/2.085, allocations: 15.41 MB / 0.761 GB, free: 3.305 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/2.085, allocations: 9.562 kB / 0.761 GB, free: 3.305 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01506/2.1, allocations: 6.097 MB / 0.767 GB, free: 136 kB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003002/2.103, allocations: 0.6988 MB / 0.7676 GB, free: 15.67 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/2.104, allocations: 18.19 kB / 0.7677 GB, free: 15.66 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003781/2.108, allocations: 112.5 kB / 0.7678 GB, free: 15.65 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009713/2.109, allocations: 199.2 kB / 0.768 GB, free: 15.62 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002993/2.109, allocations: 75.62 kB / 0.768 GB, free: 15.61 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.004855/2.114, allocations: 1.745 MB / 0.7697 GB, free: 14.87 MB / 427.1 MB Notification: Performance of sort global known variables: time 8.02e-07/2.114, allocations: 0 / 0.7697 GB, free: 14.87 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.007345/2.122, allocations: 1.051 MB / 0.7708 GB, free: 14.85 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001415/2.123, allocations: 453 kB / 0.7712 GB, free: 14.68 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.009151/2.132, allocations: 3.716 MB / 0.7748 GB, free: 12.9 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/2.132, allocations: 0 / 0.7748 GB, free: 12.9 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007216/2.139, allocations: 2.625 MB / 0.7774 GB, free: 10.66 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006334/2.146, allocations: 0.6633 MB / 0.778 GB, free: 10.14 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03295/2.179, allocations: 9.637 MB / 0.7874 GB, free: 1.477 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009866/2.189, allocations: 4.241 MB / 0.7916 GB, free: 14.3 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/2.191, allocations: 259.7 kB / 0.7918 GB, free: 14.06 MB / 443.1 MB Notification: Performance of SimCode: time 2.084e-06/2.191, allocations: 0 / 0.7918 GB, free: 14.06 MB / 443.1 MB Notification: Performance of Templates: time 1.106/3.297, allocations: 281.4 MB / 1.067 GB, free: 82.83 MB / 475.1 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