Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001445/0.001446, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008646/0.0008646, allocations: 90.91 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003195, allocations: 11.94 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2315, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.37/0.6016, allocations: 137.4 MB / 0.5263 GB, free: 54.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.6019, allocations: 94.66 kB / 0.5264 GB, free: 54.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2894/0.8913, allocations: 131.5 MB / 0.6548 GB, free: 11.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.8914, allocations: 0 / 0.6548 GB, free: 11.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000458/0.8918, allocations: 143.9 kB / 0.6549 GB, free: 11.1 MB / 442.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.01796/0.9098, allocations: 6.059 MB / 0.6609 GB, free: 4.957 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.9099, allocations: 12.03 kB / 0.6609 GB, free: 4.945 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006247/0.9161, allocations: 1.152 MB / 0.662 GB, free: 3.785 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2026/1.119, allocations: 4.946 MB / 0.6668 GB, free: 48.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005212/1.119, allocations: 424.6 kB / 0.6672 GB, free: 48.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001786/1.121, allocations: 0.5579 MB / 0.6678 GB, free: 48.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/1.136, allocations: 7.21 MB / 0.6748 GB, free: 47.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/1.136, allocations: 10.88 kB / 0.6748 GB, free: 47.69 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005708/1.137, allocations: 240.3 kB / 0.675 GB, free: 47.69 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000225/1.137, allocations: 254 kB / 0.6753 GB, free: 47.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/1.149, allocations: 5.857 MB / 0.681 GB, free: 47.63 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03524/1.185, allocations: 23.86 MB / 0.7043 GB, free: 42.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006513/1.191, allocations: 8.79 MB / 0.7129 GB, free: 36.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/1.202, allocations: 6.795 MB / 0.7195 GB, free: 35.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/1.202, allocations: 68.7 kB / 0.7196 GB, free: 35.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=253): time 4.789e-06/1.202, allocations: 0 / 0.7196 GB, free: 35.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=305): time 0.03584/1.238, allocations: 16.54 MB / 0.7357 GB, free: 30.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/1.238, allocations: 83.94 kB / 0.7358 GB, free: 30.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005222/1.243, allocations: 2.955 MB / 0.7387 GB, free: 29.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004477/1.243, allocations: 78.39 kB / 0.7388 GB, free: 29.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/1.245, allocations: 2.647 MB / 0.7414 GB, free: 27.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000953/1.246, allocations: 1.039 MB / 0.7424 GB, free: 26.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/1.246, allocations: 75.38 kB / 0.7425 GB, free: 26.63 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001984/1.246, allocations: 454 kB / 0.7429 GB, free: 26.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/1.249, allocations: 1.656 MB / 0.7445 GB, free: 25.67 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003076/1.252, allocations: 2.82 MB / 0.7473 GB, free: 23.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003125/1.255, allocations: 2.119 MB / 0.7493 GB, free: 22.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.848e-05/1.255, allocations: 14.94 kB / 0.7493 GB, free: 22.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009532/1.265, allocations: 5.767 MB / 0.755 GB, free: 20.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.963e-05/1.265, allocations: 23.88 kB / 0.755 GB, free: 20.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.753e-05/1.265, allocations: 42.48 kB / 0.755 GB, free: 20.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/1.267, allocations: 0.859 MB / 0.7559 GB, free: 20.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003728/1.271, allocations: 0.8867 MB / 0.7567 GB, free: 20.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/1.282, allocations: 10.06 MB / 0.7666 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00381/1.286, allocations: 243.8 kB / 0.7668 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006355/1.286, allocations: 168.3 kB / 0.767 GB, free: 13.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 167 * 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.003633/1.29, allocations: 1.63 MB / 0.7685 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/1.291, allocations: 401.8 kB / 0.7689 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008807/1.3, allocations: 4.934 MB / 0.7737 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/1.3, allocations: 30.41 kB / 0.7738 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.758e-05/1.3, allocations: 13.94 kB / 0.7738 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.424e-05/1.3, allocations: 17.16 kB / 0.7738 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.32, allocations: 10.63 MB / 0.7842 GB, free: 5.727 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006453/1.327, allocations: 4.169 MB / 0.7883 GB, free: 2.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002332/1.329, allocations: 0.5245 MB / 0.7888 GB, free: 2.285 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.332, allocations: 0.9852 MB / 0.7897 GB, free: 1.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000335/1.332, allocations: 71.31 kB / 0.7898 GB, free: 1.438 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01624/1.348, allocations: 15.16 MB / 0.8046 GB, free: 2.77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/1.348, allocations: 7.953 kB / 0.8046 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.362, allocations: 7.843 MB / 0.8123 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002395/1.364, allocations: 0.7951 MB / 0.8131 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001072/1.365, allocations: 67.8 kB / 0.8131 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002582/1.368, allocations: 197 kB / 0.8133 GB, free: 10.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000515/1.369, allocations: 223.9 kB / 0.8135 GB, free: 10.36 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002505/1.369, allocations: 87.5 kB / 0.8136 GB, free: 10.29 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004283/1.373, allocations: 2.246 MB / 0.8158 GB, free: 8.414 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.373, allocations: 0 / 0.8158 GB, free: 8.414 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00474/1.378, allocations: 1.222 MB / 0.817 GB, free: 7.211 MB / 474.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.stray.Phi.re,smeeM.stator.stray.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.0009635/1.379, allocations: 0.5109 MB / 0.8175 GB, free: 6.82 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008208/1.387, allocations: 5.047 MB / 0.8224 GB, free: 2.215 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.387, allocations: 0 / 0.8224 GB, free: 2.215 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004966/1.392, allocations: 3.214 MB / 0.8256 GB, free: 15.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/1.396, allocations: 0.8315 MB / 0.8264 GB, free: 14.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01989/1.416, allocations: 12.69 MB / 0.8388 GB, free: 2.891 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003831/1.42, allocations: 3.628 MB / 0.8423 GB, free: 172 kB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006028/1.426, allocations: 1.059 MB / 0.8433 GB, free: 0 / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2063/1.632, allocations: 290.5 kB / 0.8436 GB, free: 82.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.183e-06/1.632, allocations: 4.438 kB / 0.8436 GB, free: 82.41 MB / 490.7 MB Notification: Performance of Templates: time 0.08213/1.714, allocations: 56.34 MB / 0.8986 GB, free: 80.5 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches