Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 172.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.47/1.47, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008029/0.0008032, allocations: 74.67 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.474e-05/2.476e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.08927, allocations: 47.59 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3708/0.4601, allocations: 135.7 MB / 0.4938 GB, free: 6.734 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4604, allocations: 84.14 kB / 0.4939 GB, free: 6.691 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5619/1.022, allocations: 131.2 MB / 0.622 GB, free: 62.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.717e-06/1.022, allocations: 3.938 kB / 0.622 GB, free: 62.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005774/1.023, allocations: 151.7 kB / 0.6221 GB, free: 62.58 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01756/1.04, allocations: 5.416 MB / 0.6274 GB, free: 57.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/1.041, allocations: 8.031 kB / 0.6274 GB, free: 57.08 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006593/1.047, allocations: 1.152 MB / 0.6286 GB, free: 55.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/1.06, allocations: 4.899 MB / 0.6333 GB, free: 50.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003666/1.06, allocations: 423.4 kB / 0.6338 GB, free: 50.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001763/1.062, allocations: 0.5545 MB / 0.6343 GB, free: 49.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/1.077, allocations: 7.057 MB / 0.6412 GB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/1.077, allocations: 4 kB / 0.6412 GB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007055/1.077, allocations: 240 kB / 0.6414 GB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001751/1.078, allocations: 251.3 kB / 0.6417 GB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01208/1.09, allocations: 5.597 MB / 0.6471 GB, free: 36.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03835/1.128, allocations: 23.93 MB / 0.6705 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006632/1.135, allocations: 8.646 MB / 0.6789 GB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003132/1.138, allocations: 2.231 MB / 0.6811 GB, free: 252 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01251/1.151, allocations: 6.971 MB / 0.6879 GB, free: 9.062 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/1.151, allocations: 60.78 kB / 0.688 GB, free: 8.992 MB / 426.7 MB Notification: Performance of pre-optimization done (n=237): time 5.079e-06/1.151, allocations: 4 kB / 0.688 GB, free: 8.988 MB / 426.7 MB Notification: Performance of matching and sorting (n=288): time 0.2679/1.418, allocations: 12.15 MB / 0.6999 GB, free: 77.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/1.419, allocations: 84.91 kB / 0.6999 GB, free: 77.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006318/1.425, allocations: 2.939 MB / 0.7028 GB, free: 77.18 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005447/1.425, allocations: 74.34 kB / 0.7029 GB, free: 77.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.428, allocations: 2.674 MB / 0.7055 GB, free: 76.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008686/1.428, allocations: 0.9879 MB / 0.7065 GB, free: 75.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/1.429, allocations: 74.12 kB / 0.7065 GB, free: 75.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/1.429, allocations: 454.5 kB / 0.707 GB, free: 75.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00207/1.431, allocations: 1.476 MB / 0.7084 GB, free: 75.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/1.433, allocations: 2.65 MB / 0.711 GB, free: 73.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002447/1.436, allocations: 1.951 MB / 0.7129 GB, free: 73.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.438e-05/1.436, allocations: 9.719 kB / 0.7129 GB, free: 73.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.009659/1.445, allocations: 5.403 MB / 0.7182 GB, free: 73.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.809e-05/1.445, allocations: 21.53 kB / 0.7182 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/1.446, allocations: 42.27 kB / 0.7182 GB, free: 73.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002171/1.448, allocations: 0.8631 MB / 0.7191 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003399/1.451, allocations: 0.868 MB / 0.7199 GB, free: 73.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00991/1.461, allocations: 9.756 MB / 0.7295 GB, free: 69.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003735/1.465, allocations: 244.5 kB / 0.7297 GB, free: 69.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004919/1.465, allocations: 166.3 kB / 0.7298 GB, free: 69.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006172/1.466, allocations: 331.8 kB / 0.7302 GB, free: 69.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009022/1.467, allocations: 386.2 kB / 0.7305 GB, free: 68.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007558/1.474, allocations: 4.553 MB / 0.735 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/1.474, allocations: 26.22 kB / 0.735 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/1.475, allocations: 8.844 kB / 0.735 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/1.475, allocations: 15.23 kB / 0.735 GB, free: 68.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01593/1.49, allocations: 9.997 MB / 0.7448 GB, free: 66.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005149/1.496, allocations: 3.827 MB / 0.7485 GB, free: 65.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002722/1.498, allocations: 0.4954 MB / 0.749 GB, free: 65.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00362/1.502, allocations: 0.98 MB / 0.75 GB, free: 64.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003283/1.502, allocations: 68.47 kB / 0.75 GB, free: 64.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01929/1.522, allocations: 14.76 MB / 0.7645 GB, free: 53.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/1.522, allocations: 7.219 kB / 0.7645 GB, free: 53.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01484/1.537, allocations: 7.05 MB / 0.7713 GB, free: 50.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002892/1.54, allocations: 0.7795 MB / 0.7721 GB, free: 49.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000984/1.541, allocations: 69.02 kB / 0.7722 GB, free: 49.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00328/1.544, allocations: 191 kB / 0.7724 GB, free: 49.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004791/1.544, allocations: 215.3 kB / 0.7726 GB, free: 49.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001822/1.545, allocations: 82.27 kB / 0.7726 GB, free: 49.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005039/1.55, allocations: 2.216 MB / 0.7748 GB, free: 48.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.55, allocations: 0 / 0.7748 GB, free: 48.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007057/1.557, allocations: 1.202 MB / 0.776 GB, free: 48.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001428/1.558, allocations: 0.5673 MB / 0.7765 GB, free: 48.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009353/1.568, allocations: 4.667 MB / 0.7811 GB, free: 46.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/1.568, allocations: 2.844 kB / 0.7811 GB, free: 46.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006132/1.574, allocations: 2.969 MB / 0.784 GB, free: 44.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006324/1.58, allocations: 0.834 MB / 0.7848 GB, free: 44.42 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/1.604, allocations: 8.58 MB / 0.7932 GB, free: 37.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005115/1.609, allocations: 3.624 MB / 0.7967 GB, free: 34.63 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005072/1.614, allocations: 0.8355 MB / 0.7975 GB, free: 34.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.615, allocations: 249.5 kB / 0.7978 GB, free: 33.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/1.615, allocations: 0 / 0.7978 GB, free: 33.82 MB / 426.7 MB Notification: Performance of Templates: time 0.1328/1.748, allocations: 56.58 MB / 0.853 GB, free: 6.617 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches