Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 199.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 225.6 MB / 234.8 MB, free: 3.234 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008634/0.0008635, allocations: 96.78 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.975e-05/2.998e-05, allocations: 7.984 kB / 343.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.146, allocations: 51.48 MB / 395.2 MB, free: 4.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5689, allocations: 137.7 MB / 0.5204 GB, free: 4.531 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000361/0.5694, allocations: 90.05 kB / 0.5205 GB, free: 4.484 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5775/1.147, allocations: 133.3 MB / 0.6507 GB, free: 72.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.964e-06/1.147, allocations: 0 / 0.6507 GB, free: 72.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004565/1.147, allocations: 147.6 kB / 0.6508 GB, free: 72.93 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.01835/1.166, allocations: 5.447 MB / 0.6561 GB, free: 70.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/1.166, allocations: 10.78 kB / 0.6562 GB, free: 70.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007983/1.174, allocations: 1.198 MB / 0.6573 GB, free: 69.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/1.188, allocations: 4.925 MB / 0.6621 GB, free: 67.55 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/1.188, allocations: 187.3 kB / 0.6623 GB, free: 67.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001985/1.19, allocations: 338 kB / 0.6626 GB, free: 67.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01245/1.203, allocations: 5.258 MB / 0.6678 GB, free: 65.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01667/1.219, allocations: 6.209 MB / 0.6738 GB, free: 62.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003503/1.22, allocations: 23.25 kB / 0.6739 GB, free: 62.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001776/1.222, allocations: 12.8 kB / 0.6739 GB, free: 62.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002943/1.222, allocations: 249.3 kB / 0.6741 GB, free: 62.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04967/1.272, allocations: 22.91 MB / 0.6965 GB, free: 44.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008914/1.281, allocations: 8.813 MB / 0.7051 GB, free: 34.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003959/1.285, allocations: 2.153 MB / 0.7072 GB, free: 32.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01618/1.301, allocations: 7.4 MB / 0.7144 GB, free: 24.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/1.301, allocations: 56.56 kB / 0.7145 GB, free: 24.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=241): time 5.55e-06/1.301, allocations: 3.938 kB / 0.7145 GB, free: 24.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=292): time 0.02586/1.327, allocations: 10.64 MB / 0.7249 GB, free: 13.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/1.327, allocations: 85.67 kB / 0.7249 GB, free: 13.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005748/1.333, allocations: 2.394 MB / 0.7273 GB, free: 11.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004614/1.333, allocations: 29.64 kB / 0.7273 GB, free: 11.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/1.335, allocations: 2.687 MB / 0.7299 GB, free: 8.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.336, allocations: 0.9662 MB / 0.7309 GB, free: 7.562 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004008/1.336, allocations: 0 / 0.7309 GB, free: 7.562 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/1.337, allocations: 457.9 kB / 0.7313 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/1.339, allocations: 1.409 MB / 0.7327 GB, free: 5.699 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002654/1.341, allocations: 2.57 MB / 0.7352 GB, free: 2.605 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004053/1.346, allocations: 2.125 MB / 0.7373 GB, free: 472 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.519e-05/1.346, allocations: 12 kB / 0.7373 GB, free: 460 kB / 442.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.3771/1.723, allocations: 5.223 MB / 0.7424 GB, free: 66.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.627e-05/1.723, allocations: 29.33 kB / 0.7424 GB, free: 66.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.483e-05/1.723, allocations: 38.75 kB / 0.7424 GB, free: 66.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002801/1.726, allocations: 0.8417 MB / 0.7433 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005528/1.731, allocations: 0.8644 MB / 0.7441 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01489/1.746, allocations: 9.363 MB / 0.7533 GB, free: 62.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005152/1.751, allocations: 165.4 kB / 0.7534 GB, free: 62.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008153/1.752, allocations: 167.1 kB / 0.7536 GB, free: 62.64 MB / 442.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 (425): * Single equations (assignments): 416 * 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.0008507/1.753, allocations: 220.4 kB / 0.7538 GB, free: 62.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.754, allocations: 364.1 kB / 0.7541 GB, free: 62.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/1.767, allocations: 4.491 MB / 0.7585 GB, free: 62.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-05/1.767, allocations: 28.95 kB / 0.7585 GB, free: 62.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.418e-05/1.767, allocations: 8.562 kB / 0.7586 GB, free: 62.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.14e-05/1.767, allocations: 16.73 kB / 0.7586 GB, free: 62.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02354/1.791, allocations: 9.266 MB / 0.7676 GB, free: 61.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01033/1.801, allocations: 3.88 MB / 0.7714 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003719/1.805, allocations: 0.5034 MB / 0.7719 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003903/1.809, allocations: 0.9554 MB / 0.7728 GB, free: 60.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004926/1.809, allocations: 35.16 kB / 0.7729 GB, free: 60.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01902/1.829, allocations: 14.22 MB / 0.7868 GB, free: 53.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/1.829, allocations: 4.75 kB / 0.7868 GB, free: 53.01 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/1.844, allocations: 7.053 MB / 0.7936 GB, free: 49.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002426/1.847, allocations: 0.7361 MB / 0.7944 GB, free: 48.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007355/1.848, allocations: 13.22 kB / 0.7944 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00264/1.85, allocations: 150.9 kB / 0.7945 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007272/1.851, allocations: 211.6 kB / 0.7947 GB, free: 48.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003121/1.851, allocations: 88.11 kB / 0.7948 GB, free: 48.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004384/1.856, allocations: 1.758 MB / 0.7965 GB, free: 48.15 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.856, allocations: 1.688 kB / 0.7965 GB, free: 48.15 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006799/1.863, allocations: 1.044 MB / 0.7975 GB, free: 48.13 MB / 442.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.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 220 * 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.001273/1.864, allocations: 0.4986 MB / 0.798 GB, free: 48.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009425/1.873, allocations: 4.478 MB / 0.8024 GB, free: 46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/1.873, allocations: 0 / 0.8024 GB, free: 46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006236/1.88, allocations: 2.892 MB / 0.8052 GB, free: 44.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005426/1.885, allocations: 0.6126 MB / 0.8058 GB, free: 44.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02486/1.91, allocations: 8.414 MB / 0.814 GB, free: 40.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005348/1.915, allocations: 3.62 MB / 0.8176 GB, free: 39.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005133/1.921, allocations: 0.8085 MB / 0.8184 GB, free: 39.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.922, allocations: 234 kB / 0.8186 GB, free: 39.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.462e-06/1.922, allocations: 0 / 0.8186 GB, free: 39.43 MB / 442.7 MB Notification: Performance of Templates: time 0.09685/2.019, allocations: 44.58 MB / 0.8621 GB, free: 22.09 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches