Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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.ComparisonPolyphase.SMEE_Generator_Polyphase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.is.1.|smee3.is.2.|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.stray.port_p.Phi.im|smee3.stator.stray.port_p.Phi.re|smeeM.is.1.|smeeM.is.2.|smeeM.is.3.|smeeM.is.4.|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.ComparisonPolyphase.SMEE_Generator_Polyphase") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 185.3 kB / 8.138 MB, free: 2.195 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.235/1.235, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008522/0.0008522, allocations: 99.58 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.948e-06/9.989e-06, allocations: 4 kB / 336.5 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2122, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2535/0.4658, allocations: 124.8 MB / 0.4997 GB, free: 105.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4661, allocations: 104.4 kB / 0.4998 GB, free: 105.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.5502/1.016, allocations: 191.7 MB / 0.687 GB, free: 29.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005214/1.017, allocations: 206.5 kB / 0.6872 GB, free: 29.21 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02041/1.037, allocations: 7.995 MB / 0.6951 GB, free: 26.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/1.037, allocations: 10.94 kB / 0.6951 GB, free: 26.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/1.049, allocations: 1.928 MB / 0.6969 GB, free: 26 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01548/1.064, allocations: 7.092 MB / 0.7039 GB, free: 24.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/1.064, allocations: 281.9 kB / 0.7041 GB, free: 24.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00177/1.066, allocations: 0.5038 MB / 0.7046 GB, free: 24.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01458/1.081, allocations: 8.377 MB / 0.7128 GB, free: 24.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01981/1.101, allocations: 9.757 MB / 0.7223 GB, free: 24.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001838/1.101, allocations: 10.47 kB / 0.7224 GB, free: 24.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007553/1.102, allocations: 3.969 kB / 0.7224 GB, free: 24.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002245/1.102, allocations: 387.9 kB / 0.7227 GB, free: 24.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04808/1.15, allocations: 34.59 MB / 0.7565 GB, free: 11.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003101/1.153, allocations: 2.472 MB / 0.7589 GB, free: 10.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004248/1.157, allocations: 3.462 MB / 0.7623 GB, free: 9.203 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/1.173, allocations: 10.15 MB / 0.7722 GB, free: 3.609 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/1.173, allocations: 74.41 kB / 0.7723 GB, free: 3.543 MB / 426.7 MB Notification: Performance of pre-optimization done (n=371): time 5.8e-06/1.173, allocations: 0 / 0.7723 GB, free: 3.543 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.02853/1.201, allocations: 13.07 MB / 0.7851 GB, free: 12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/1.201, allocations: 94.73 kB / 0.7851 GB, free: 11.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00571/1.207, allocations: 3.177 MB / 0.7882 GB, free: 9.051 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006397/1.208, allocations: 29.7 kB / 0.7883 GB, free: 9.016 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/1.21, allocations: 3.118 MB / 0.7913 GB, free: 6.305 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.211, allocations: 1.391 MB / 0.7927 GB, free: 5.023 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/1.211, allocations: 0 / 0.7927 GB, free: 5.023 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003027/1.212, allocations: 0.4902 MB / 0.7932 GB, free: 4.586 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003209/1.215, allocations: 1.975 MB / 0.7951 GB, free: 2.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004232/1.219, allocations: 3.403 MB / 0.7984 GB, free: 14.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005467/1.225, allocations: 2.696 MB / 0.801 GB, free: 12.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.474e-05/1.225, allocations: 16.05 kB / 0.8011 GB, free: 12.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=647) (initialization): time 0.01332/1.238, allocations: 6.491 MB / 0.8074 GB, free: 6.969 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/1.238, allocations: 4 kB / 0.8074 GB, free: 6.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-05/1.238, allocations: 51.75 kB / 0.8074 GB, free: 6.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/1.24, allocations: 0.7152 MB / 0.8081 GB, free: 6.301 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005175/1.246, allocations: 1.164 MB / 0.8093 GB, free: 5.301 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.257, allocations: 9.444 MB / 0.8185 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004548/1.261, allocations: 156.5 kB / 0.8187 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000757/1.262, allocations: 225.6 kB / 0.8189 GB, free: 11.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 205 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (594): * Single equations (assignments): 586 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007625/1.263, allocations: 247.6 kB / 0.8191 GB, free: 11.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009677/1.264, allocations: 462.3 kB / 0.8195 GB, free: 10.94 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/1.274, allocations: 5.707 MB / 0.8251 GB, free: 6.016 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.532e-05/1.274, allocations: 40 kB / 0.8252 GB, free: 5.977 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/1.274, allocations: 12 kB / 0.8252 GB, free: 5.965 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.292e-05/1.274, allocations: 20.25 kB / 0.8252 GB, free: 5.965 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2187/1.493, allocations: 13.06 MB / 0.8379 GB, free: 98.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.459e-05/1.493, allocations: 14.22 kB / 0.838 GB, free: 98.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005392/1.499, allocations: 0.7245 MB / 0.8387 GB, free: 98.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003539/1.502, allocations: 0.9022 MB / 0.8395 GB, free: 98.91 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005525/1.503, allocations: 40 kB / 0.8396 GB, free: 98.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01953/1.522, allocations: 13.06 MB / 0.8523 GB, free: 92.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.522, allocations: 10.06 kB / 0.8523 GB, free: 92.66 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01146/1.534, allocations: 9.046 MB / 0.8612 GB, free: 91.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.536, allocations: 0.9934 MB / 0.8621 GB, free: 91.29 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007187/1.537, allocations: 18.25 kB / 0.8622 GB, free: 91.29 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002389/1.539, allocations: 162.6 kB / 0.8623 GB, free: 91.29 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004112/1.539, allocations: 241.7 kB / 0.8626 GB, free: 91.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002446/1.54, allocations: 117.8 kB / 0.8627 GB, free: 91.28 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002983/1.543, allocations: 2.348 MB / 0.865 GB, free: 91.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004158/1.547, allocations: 1.371 MB / 0.8663 GB, free: 91.1 MB / 474.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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 339 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007988/1.548, allocations: 0.5389 MB / 0.8668 GB, free: 91.01 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006791/1.555, allocations: 5.708 MB / 0.8724 GB, free: 90.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.555, allocations: 3.75 kB / 0.8724 GB, free: 90.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004092/1.559, allocations: 3.35 MB / 0.8757 GB, free: 89.68 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.563, allocations: 0.7278 MB / 0.8764 GB, free: 89.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.587, allocations: 12.35 MB / 0.8884 GB, free: 87.17 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005888/1.593, allocations: 5.536 MB / 0.8939 GB, free: 86.32 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/1.593, allocations: 0 / 0.8939 GB, free: 86.32 MB / 474.7 MB Notification: Performance of Templates: time 0.1037/1.696, allocations: 65.39 MB / 0.9577 GB, free: 76.8 MB / 474.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMEE_Generator_Polyphase/SMEE_Generator_Polyphase.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches