Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed.phi|constantSpeedQS.phi|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.stray.port_p.Phi.im|smee.stator.stray.port_p.Phi.re|smee.stator.zeroInductor.i0|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.001403/0.001403, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.589/1.589, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009088/0.0009088, allocations: 88.86 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.37e-05/1.372e-05, allocations: 0 / 337.1 MB, free: 10 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1014, allocations: 50.42 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4474/0.5489, allocations: 166.9 MB / 0.5414 GB, free: 7.742 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.5492, allocations: 99.94 kB / 0.5415 GB, free: 7.645 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.571/2.12, allocations: 387 MB / 0.9194 GB, free: 33.72 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.743e-06/2.12, allocations: 0 / 0.9194 GB, free: 33.72 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.001327/2.121, allocations: 260.8 kB / 0.9197 GB, free: 33.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.03819/2.16, allocations: 10.14 MB / 0.9296 GB, free: 30.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/2.16, allocations: 10.47 kB / 0.9296 GB, free: 30.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02327/2.183, allocations: 3.734 MB / 0.9332 GB, free: 29.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02562/2.209, allocations: 8.887 MB / 0.9419 GB, free: 28.72 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007983/2.209, allocations: 359.8 kB / 0.9423 GB, free: 28.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005255/2.215, allocations: 0.6259 MB / 0.9429 GB, free: 28.71 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02982/2.245, allocations: 12.19 MB / 0.9548 GB, free: 28.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05576/2.3, allocations: 14.52 MB / 0.969 GB, free: 27.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008629/2.301, allocations: 22.53 kB / 0.969 GB, free: 27.37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005447/2.307, allocations: 11.42 kB / 0.969 GB, free: 27.37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001389/2.308, allocations: 0.7059 MB / 0.9697 GB, free: 27.34 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1228/2.431, allocations: 53.93 MB / 1.022 GB, free: 1.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02259/2.454, allocations: 22.11 MB / 1.044 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005653/2.459, allocations: 3.465 MB / 1.047 GB, free: 13.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01922/2.479, allocations: 9.869 MB / 1.057 GB, free: 6.039 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/2.479, allocations: 69.25 kB / 1.057 GB, free: 5.969 MB / 490.7 MB Notification: Performance of pre-optimization done (n=313): time 7.083e-06/2.479, allocations: 0 / 1.057 GB, free: 5.969 MB / 490.7 MB Notification: Performance of matching and sorting (n=346): time 0.3541/2.833, allocations: 15.68 MB / 1.072 GB, free: 61.72 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/2.833, allocations: 116.7 kB / 1.072 GB, free: 61.63 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008821/2.842, allocations: 3.897 MB / 1.076 GB, free: 61.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008397/2.843, allocations: 34.3 kB / 1.076 GB, free: 61.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004112/2.847, allocations: 5.151 MB / 1.081 GB, free: 58.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001919/2.849, allocations: 1.162 MB / 1.082 GB, free: 58.23 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005757/2.849, allocations: 4.094 kB / 1.082 GB, free: 58.23 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005122/2.85, allocations: 0.5517 MB / 1.083 GB, free: 57.92 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005542/2.855, allocations: 2.615 MB / 1.086 GB, free: 57.9 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008233/2.864, allocations: 5.274 MB / 1.091 GB, free: 54.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009784/2.873, allocations: 4.53 MB / 1.095 GB, free: 54.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002084/2.874, allocations: 23.78 kB / 1.095 GB, free: 54.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02413/2.898, allocations: 9.354 MB / 1.104 GB, free: 54.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002132/2.898, allocations: 43.97 kB / 1.104 GB, free: 54.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002813/2.898, allocations: 93.72 kB / 1.104 GB, free: 54.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002709/2.901, allocations: 0.9082 MB / 1.105 GB, free: 54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00649/2.908, allocations: 1.491 MB / 1.107 GB, free: 54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/2.919, allocations: 9.351 MB / 1.116 GB, free: 50.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00946/2.928, allocations: 398.2 kB / 1.116 GB, free: 50.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002513/2.931, allocations: 333.3 kB / 1.117 GB, free: 50.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (754): * Single equations (assignments): 744 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003093/2.934, allocations: 346 kB / 1.117 GB, free: 49.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002081/2.936, allocations: 476.7 kB / 1.117 GB, free: 49.62 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01456/2.951, allocations: 6.588 MB / 1.124 GB, free: 49.16 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00976/2.96, allocations: 5.638 MB / 1.129 GB, free: 48.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.52e-05/2.96, allocations: 9.875 kB / 1.129 GB, free: 48.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.985e-05/2.961, allocations: 16.36 kB / 1.129 GB, free: 48.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04321/3.004, allocations: 20.39 MB / 1.149 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-05/3.004, allocations: 8.75 kB / 1.149 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002909/3.007, allocations: 0.6166 MB / 1.15 GB, free: 47.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003007/3.01, allocations: 1.129 MB / 1.151 GB, free: 47.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005402/3.01, allocations: 39.38 kB / 1.151 GB, free: 47.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/3.025, allocations: 14.23 MB / 1.165 GB, free: 38.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002875/3.028, allocations: 2.733 MB / 1.168 GB, free: 36.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01647/3.044, allocations: 10.14 MB / 1.177 GB, free: 31.07 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003095/3.047, allocations: 1.031 MB / 1.178 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001826/3.049, allocations: 6.344 kB / 1.178 GB, free: 30.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003996/3.053, allocations: 224.5 kB / 1.179 GB, free: 30.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008357/3.054, allocations: 271.6 kB / 1.179 GB, free: 30.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003989/3.055, allocations: 106.2 kB / 1.179 GB, free: 30.37 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006218/3.061, allocations: 2.803 MB / 1.182 GB, free: 29.24 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/3.061, allocations: 0 / 1.182 GB, free: 29.24 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01112/3.072, allocations: 1.744 MB / 1.183 GB, free: 29.21 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,65.6%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002156/3.074, allocations: 0.5146 MB / 1.184 GB, free: 29.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01258/3.087, allocations: 6.776 MB / 1.191 GB, free: 26.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/3.087, allocations: 3.719 kB / 1.191 GB, free: 26.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00698/3.094, allocations: 3.542 MB / 1.194 GB, free: 24.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006775/3.101, allocations: 0.8631 MB / 1.195 GB, free: 24.47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03823/3.139, allocations: 15.3 MB / 1.21 GB, free: 14.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0125/3.151, allocations: 6.779 MB / 1.216 GB, free: 9.016 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007648/3.159, allocations: 1.824 MB / 1.218 GB, free: 7.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001953/3.161, allocations: 365.8 kB / 1.219 GB, free: 7.496 MB / 490.7 MB Notification: Performance of SimCode: time 1.502e-06/3.161, allocations: 0 / 1.219 GB, free: 7.496 MB / 490.7 MB Notification: Performance of Templates: time 0.4572/3.618, allocations: 64.96 MB / 1.282 GB, free: 64.53 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches