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.0009741/0.0009739, allocations: 181.8 kB / 17.02 MB, free: 5.121 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.428/1.428, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008233/0.000823, allocations: 89.28 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000229/0.000229, allocations: 8 kB / 328.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2128, allocations: 47.56 MB / 375.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/0.5191, allocations: 135.8 MB / 0.4996 GB, free: 63.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.5195, allocations: 86.2 kB / 0.4997 GB, free: 63.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2778/0.7973, allocations: 131.1 MB / 0.6277 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7973, allocations: 4 kB / 0.6277 GB, free: 10.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003863/0.7977, allocations: 140.1 kB / 0.6278 GB, free: 10.48 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.01654/0.8143, allocations: 6.051 MB / 0.6337 GB, free: 4.352 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.8143, allocations: 8.031 kB / 0.6337 GB, free: 4.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006662/0.821, allocations: 1.164 MB / 0.6349 GB, free: 3.172 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/0.8344, allocations: 4.934 MB / 0.6397 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004535/0.8349, allocations: 427.4 kB / 0.6401 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002018/0.8369, allocations: 0.5584 MB / 0.6406 GB, free: 13.19 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/0.8513, allocations: 7.22 MB / 0.6477 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001215/0.8514, allocations: 7.906 kB / 0.6477 GB, free: 5.777 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005769/0.852, allocations: 236 kB / 0.6479 GB, free: 5.547 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/0.8523, allocations: 255.3 kB / 0.6482 GB, free: 5.297 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2249/1.077, allocations: 5.847 MB / 0.6539 GB, free: 51.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03883/1.116, allocations: 23.87 MB / 0.6772 GB, free: 46.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007147/1.123, allocations: 8.788 MB / 0.6858 GB, free: 41.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/1.135, allocations: 6.791 MB / 0.6924 GB, free: 39.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.82e-05/1.135, allocations: 65.36 kB / 0.6925 GB, free: 39.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=253): time 5.01e-06/1.135, allocations: 0 / 0.6925 GB, free: 39.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=305): time 0.03774/1.173, allocations: 16.62 MB / 0.7087 GB, free: 37.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/1.173, allocations: 81.06 kB / 0.7088 GB, free: 37.23 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004737/1.177, allocations: 2.967 MB / 0.7117 GB, free: 36.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004868/1.178, allocations: 76.27 kB / 0.7117 GB, free: 36.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/1.179, allocations: 2.649 MB / 0.7143 GB, free: 35.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007553/1.18, allocations: 1.039 MB / 0.7153 GB, free: 35.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/1.18, allocations: 74.75 kB / 0.7154 GB, free: 35.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.18, allocations: 462 kB / 0.7159 GB, free: 34.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/1.183, allocations: 1.648 MB / 0.7175 GB, free: 34.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002729/1.185, allocations: 2.83 MB / 0.7202 GB, free: 33.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002656/1.188, allocations: 2.12 MB / 0.7223 GB, free: 32.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.6e-05/1.188, allocations: 11.12 kB / 0.7223 GB, free: 32.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008644/1.197, allocations: 5.764 MB / 0.7279 GB, free: 30.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/1.197, allocations: 22.83 kB / 0.728 GB, free: 30.15 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.816e-05/1.197, allocations: 45.94 kB / 0.728 GB, free: 30.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/1.199, allocations: 0.8612 MB / 0.7289 GB, free: 29.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003/1.202, allocations: 0.9016 MB / 0.7297 GB, free: 29.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/1.211, allocations: 10.06 MB / 0.7396 GB, free: 23.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003479/1.215, allocations: 251.2 kB / 0.7398 GB, free: 23.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003634/1.215, allocations: 169.8 kB / 0.74 GB, free: 23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 168 * 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 (434): * Single equations (assignments): 425 * 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.003102/1.218, allocations: 1.628 MB / 0.7415 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008847/1.219, allocations: 391.5 kB / 0.7419 GB, free: 21.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0077/1.227, allocations: 4.947 MB / 0.7467 GB, free: 19.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/1.227, allocations: 29.86 kB / 0.7468 GB, free: 19.85 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/1.227, allocations: 15 kB / 0.7468 GB, free: 19.85 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/1.227, allocations: 14.53 kB / 0.7468 GB, free: 19.85 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/1.243, allocations: 10.63 MB / 0.7572 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00571/1.249, allocations: 4.185 MB / 0.7613 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002124/1.251, allocations: 0.5262 MB / 0.7618 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/1.253, allocations: 0.9834 MB / 0.7627 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.253, allocations: 82 kB / 0.7628 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/1.265, allocations: 15.12 MB / 0.7776 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.265, allocations: 11.09 kB / 0.7776 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.277, allocations: 7.839 MB / 0.7853 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00263/1.28, allocations: 0.7997 MB / 0.786 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009091/1.281, allocations: 67.47 kB / 0.7861 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/1.283, allocations: 192 kB / 0.7863 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004707/1.284, allocations: 227.7 kB / 0.7865 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/1.284, allocations: 87.8 kB / 0.7866 GB, free: 11.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003768/1.288, allocations: 2.25 MB / 0.7888 GB, free: 9.402 MB / 442.7 MB Notification: Performance of sort global known variables: time 3e-07/1.288, allocations: 0 / 0.7888 GB, free: 9.402 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004508/1.292, allocations: 1.213 MB / 0.79 GB, free: 8.207 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 235 * 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,75.0%) 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.0008942/1.293, allocations: 0.5017 MB / 0.7905 GB, free: 7.824 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007805/1.301, allocations: 5.056 MB / 0.7954 GB, free: 3.227 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.301, allocations: 0 / 0.7954 GB, free: 3.227 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004884/1.306, allocations: 3.223 MB / 0.7985 GB, free: 272 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/1.312, allocations: 0.9993 MB / 0.7995 GB, free: 0 / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01992/1.332, allocations: 12.71 MB / 0.8119 GB, free: 4.301 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003407/1.335, allocations: 3.632 MB / 0.8155 GB, free: 1.574 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003931/1.339, allocations: 0.8465 MB / 0.8163 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007603/1.34, allocations: 263.1 kB / 0.8166 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of SimCode: time 1.132e-06/1.34, allocations: 0 / 0.8166 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of Templates: time 0.296/1.636, allocations: 56.37 MB / 0.8716 GB, free: 70.38 MB / 458.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