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.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.0009982, allocations: 92.64 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009957/0.0009958, allocations: 177.2 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003236, allocations: 8 kB / 301.6 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1054, allocations: 50.42 MB / 352 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2624/0.3679, allocations: 37.18 MB / 389.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02382/0.3918, allocations: 10.21 MB / 399.4 MB, free: 68 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01031/0.4021, allocations: 282.7 kB / 399.6 MB, free: 4 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00844/0.4106, allocations: 2.129 MB / 401.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.4263, allocations: 3.06 MB / 404.8 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008481/0.4348, allocations: 1.956 MB / 406.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02441/0.4593, allocations: 12.92 MB / 419.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05313/0.5125, allocations: 24.09 MB / 443.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0098/0.5223, allocations: 4.747 MB / 448.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0114/0.5338, allocations: 5.912 MB / 454.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003464/0.5373, allocations: 0.7617 MB / 455.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006923/0.5442, allocations: 1.144 MB / 456.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005347/0.5496, allocations: 2.491 MB / 458.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01328/0.5629, allocations: 5.976 MB / 464.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03137/0.5943, allocations: 24.25 MB / 489.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.5943, allocations: 0 / 489.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.5944, allocations: 0 / 489.1 MB, free: 12.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007941/0.5952, allocations: 0 / 489.1 MB, free: 12.21 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.03657/0.6317, allocations: 12.42 MB / 0.4897 GB, free: 15.67 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.6318, allocations: 8.031 kB / 0.4898 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006208/0.638, allocations: 1.719 MB / 0.4914 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03413/0.6722, allocations: 6.151 MB / 0.4974 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02029/0.6925, allocations: 7.804 MB / 0.5051 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001172/0.6937, allocations: 0.911 MB / 0.5059 GB, free: 14.96 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004455/0.6982, allocations: 1.195 MB / 0.5071 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4581/1.156, allocations: 18.66 MB / 0.5253 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001303/1.158, allocations: 21.78 kB / 0.5254 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007218/1.165, allocations: 0.4918 MB / 0.5258 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001531/1.167, allocations: 0.6379 MB / 0.5265 GB, free: 109.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04755/1.214, allocations: 16.76 MB / 0.5428 GB, free: 103.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1117/1.326, allocations: 59.08 MB / 0.6005 GB, free: 54.7 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02243/1.348, allocations: 32.85 MB / 0.6326 GB, free: 17.94 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006638/1.355, allocations: 3.742 MB / 0.6363 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01816/1.373, allocations: 8.674 MB / 0.6447 GB, free: 5.516 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/1.373, allocations: 81.3 kB / 0.6448 GB, free: 5.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 5.02e-06/1.373, allocations: 0 / 0.6448 GB, free: 5.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.04177/1.415, allocations: 17.59 MB / 0.662 GB, free: 3.688 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.744e-05/1.415, allocations: 98.41 kB / 0.6621 GB, free: 3.578 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/1.427, allocations: 5.011 MB / 0.667 GB, free: 14.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001023/1.428, allocations: 97.64 kB / 0.6671 GB, free: 14.47 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005216/1.434, allocations: 5.445 MB / 0.6724 GB, free: 8.992 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002157/1.436, allocations: 1.35 MB / 0.6737 GB, free: 7.652 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001951/1.438, allocations: 0.5242 MB / 0.6742 GB, free: 7.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/1.438, allocations: 305.1 kB / 0.6745 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005739/1.444, allocations: 2.906 MB / 0.6773 GB, free: 3.91 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007881/1.452, allocations: 5.875 MB / 0.6831 GB, free: 12.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01389/1.465, allocations: 9.444 MB / 0.6923 GB, free: 1.746 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/1.466, allocations: 28 kB / 0.6923 GB, free: 1.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2547/1.72, allocations: 9.852 MB / 0.7019 GB, free: 143.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001599/1.721, allocations: 46.19 kB / 0.702 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000298/1.721, allocations: 103.5 kB / 0.7021 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002915/1.724, allocations: 0.9337 MB / 0.703 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00634/1.73, allocations: 1.581 MB / 0.7045 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/1.742, allocations: 9.497 MB / 0.7138 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005949/1.748, allocations: 402.5 kB / 0.7142 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/1.75, allocations: 354.9 kB / 0.7145 GB, free: 136.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008158/1.758, allocations: 4.251 MB / 0.7187 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.759, allocations: 0.5096 MB / 0.7192 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/1.769, allocations: 6.493 MB / 0.7255 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.021e-05/1.769, allocations: 39.69 kB / 0.7256 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.887e-05/1.769, allocations: 15.66 kB / 0.7256 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-05/1.769, allocations: 19.97 kB / 0.7256 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02734/1.797, allocations: 15.71 MB / 0.741 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.797, allocations: 3.844 kB / 0.741 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003001/1.8, allocations: 0.7411 MB / 0.7417 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002057/1.802, allocations: 0.7924 MB / 0.7425 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004011/1.802, allocations: 84.48 kB / 0.7425 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008999/1.811, allocations: 8.687 MB / 0.751 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.811, allocations: 4 kB / 0.751 GB, free: 118.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01384/1.825, allocations: 9.499 MB / 0.7603 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002377/1.828, allocations: 1.067 MB / 0.7613 GB, free: 109.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006738/1.828, allocations: 80 kB / 0.7614 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002309/1.831, allocations: 223.7 kB / 0.7616 GB, free: 109.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005519/1.831, allocations: 258.8 kB / 0.7619 GB, free: 108.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/1.831, allocations: 116 kB / 0.762 GB, free: 108.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005371/1.837, allocations: 3.35 MB / 0.7653 GB, free: 105.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.837, allocations: 3.938 kB / 0.7653 GB, free: 105.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007475/1.844, allocations: 1.875 MB / 0.7671 GB, free: 103.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01351/1.858, allocations: 10.22 MB / 0.7771 GB, free: 93.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01129/1.869, allocations: 7.659 MB / 0.7846 GB, free: 85.45 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.869, allocations: 0 / 0.7846 GB, free: 85.45 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005317/1.875, allocations: 3.561 MB / 0.788 GB, free: 81.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008931/1.883, allocations: 1.212 MB / 0.7892 GB, free: 80.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3472/2.231, allocations: 85.5 MB / 0.8727 GB, free: 161.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01726/2.248, allocations: 7.322 MB / 0.8799 GB, free: 160.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007354/2.255, allocations: 2.146 MB / 0.882 GB, free: 160.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0066/2.262, allocations: 4.327 MB / 0.8862 GB, free: 157.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.292e-06/2.262, allocations: 0 / 0.8862 GB, free: 157.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1902/2.452, allocations: 144.8 MB / 1.028 GB, free: 29.52 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/2.453, allocations: 299.9 kB / 1.028 GB, free: 29.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.359/7.812, allocations: 4.062 kB / 1.028 GB, free: 29.12 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches