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.SMPM_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.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.001687/0.001688, allocations: 113.3 kB / 17.06 MB, free: 5.965 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.001838/0.001838, allocations: 197.3 kB / 18.01 MB, free: 5.047 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.365/1.365, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 55.91 kB / 350.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.237, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04448/0.2816, allocations: 41.17 MB / 441.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.3049, allocations: 10.95 MB / 452.4 MB, free: 4.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007656/0.3126, allocations: 311 kB / 452.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02071/0.3333, allocations: 8.762 MB / 461.5 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01209/0.3454, allocations: 3.561 MB / 465 MB, free: 7.793 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007124/0.3526, allocations: 2.406 MB / 467.4 MB, free: 5.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01791/0.3705, allocations: 13.34 MB / 480.8 MB, free: 8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03794/0.4085, allocations: 25.61 MB / 0.4945 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01108/0.4196, allocations: 6.958 MB / 0.5013 GB, free: 7.258 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01349/0.4331, allocations: 7.926 MB / 0.5091 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00653/0.4397, allocations: 1.992 MB / 0.511 GB, free: 13.31 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009078/0.4488, allocations: 2.371 MB / 0.5133 GB, free: 10.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006984/0.4559, allocations: 4.041 MB / 0.5173 GB, free: 6.891 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0147/0.4706, allocations: 7.762 MB / 0.5248 GB, free: 15.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4353/0.9059, allocations: 26.52 MB / 0.5507 GB, free: 57.38 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.906, allocations: 0 / 0.5507 GB, free: 57.38 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.906, allocations: 0 / 0.5507 GB, free: 57.38 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008126/0.9068, allocations: 1.875 kB / 0.5507 GB, free: 57.38 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.05041/0.9572, allocations: 15.72 MB / 0.5661 GB, free: 51.41 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.9573, allocations: 9.438 kB / 0.5661 GB, free: 51.41 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007858/0.9652, allocations: 1.76 MB / 0.5678 GB, free: 50.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03408/0.9993, allocations: 6.285 MB / 0.574 GB, free: 48.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01758/1.017, allocations: 8.294 MB / 0.5821 GB, free: 44.93 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009798/1.018, allocations: 0.9278 MB / 0.583 GB, free: 44.51 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006427/1.024, allocations: 1.225 MB / 0.5842 GB, free: 44.1 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04945/1.074, allocations: 19.02 MB / 0.6027 GB, free: 26.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006764/1.075, allocations: 27.89 kB / 0.6028 GB, free: 26.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005489/1.08, allocations: 0.5046 MB / 0.6033 GB, free: 26.28 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006389/1.081, allocations: 0.6524 MB / 0.6039 GB, free: 25.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03646/1.117, allocations: 17.04 MB / 0.6205 GB, free: 8.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1144/1.232, allocations: 59.98 MB / 0.6791 GB, free: 12.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03024/1.262, allocations: 33.16 MB / 0.7115 GB, free: 7.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00678/1.269, allocations: 3.781 MB / 0.7152 GB, free: 3.387 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01665/1.285, allocations: 8.887 MB / 0.7239 GB, free: 10.56 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.806e-05/1.285, allocations: 73.41 kB / 0.7239 GB, free: 10.48 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 5.501e-06/1.285, allocations: 0 / 0.7239 GB, free: 10.48 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.03794/1.323, allocations: 17.92 MB / 0.7414 GB, free: 8.508 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.4e-05/1.324, allocations: 90.58 kB / 0.7415 GB, free: 8.406 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008587/1.332, allocations: 5.249 MB / 0.7466 GB, free: 3.176 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007264/1.333, allocations: 89.7 kB / 0.7467 GB, free: 3.082 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2201/1.553, allocations: 5.8 MB / 0.7524 GB, free: 223.7 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0017/1.555, allocations: 1.475 MB / 0.7538 GB, free: 222.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002121/1.557, allocations: 1.36 MB / 0.7552 GB, free: 222.6 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.175e-05/1.557, allocations: 309.6 kB / 0.7555 GB, free: 222.3 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003918/1.561, allocations: 2.973 MB / 0.7584 GB, free: 222.3 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004725/1.566, allocations: 6.011 MB / 0.7642 GB, free: 217.7 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009051/1.575, allocations: 9.67 MB / 0.7737 GB, free: 210.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-05/1.575, allocations: 30.78 kB / 0.7737 GB, free: 210.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01422/1.589, allocations: 10.1 MB / 0.7836 GB, free: 206.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.269e-05/1.589, allocations: 51.12 kB / 0.7836 GB, free: 206.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/1.589, allocations: 99.84 kB / 0.7837 GB, free: 206.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/1.591, allocations: 0.9515 MB / 0.7846 GB, free: 206.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005084/1.597, allocations: 1.624 MB / 0.7862 GB, free: 205.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009802/1.606, allocations: 10.21 MB / 0.7962 GB, free: 197 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005742/1.612, allocations: 420.1 kB / 0.7966 GB, free: 196.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.613, allocations: 363.3 kB / 0.7969 GB, free: 196.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.007425/1.621, allocations: 4.31 MB / 0.8012 GB, free: 192.6 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001436/1.622, allocations: 0.5664 MB / 0.8017 GB, free: 192 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009971/1.632, allocations: 6.66 MB / 0.8082 GB, free: 186.4 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.553e-05/1.632, allocations: 44 kB / 0.8083 GB, free: 186.4 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.632, allocations: 8 kB / 0.8083 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.036e-05/1.632, allocations: 19.08 kB / 0.8083 GB, free: 186.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02508/1.657, allocations: 16.24 MB / 0.8241 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/1.657, allocations: 4 kB / 0.8241 GB, free: 172.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003273/1.661, allocations: 0.7684 MB / 0.8249 GB, free: 171.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/1.663, allocations: 0.7999 MB / 0.8257 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005258/1.663, allocations: 87.97 kB / 0.8258 GB, free: 170.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008395/1.672, allocations: 9.36 MB / 0.8349 GB, free: 161 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.672, allocations: 4 kB / 0.8349 GB, free: 161 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/1.684, allocations: 9.823 MB / 0.8445 GB, free: 151.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002302/1.686, allocations: 1.118 MB / 0.8456 GB, free: 149.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008346/1.687, allocations: 79.95 kB / 0.8457 GB, free: 149.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002258/1.69, allocations: 231.7 kB / 0.8459 GB, free: 149.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005517/1.69, allocations: 270.8 kB / 0.8461 GB, free: 149.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/1.69, allocations: 124 kB / 0.8463 GB, free: 149.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004469/1.695, allocations: 3.499 MB / 0.8497 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.61e-07/1.695, allocations: 0 / 0.8497 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.006153/1.701, allocations: 1.934 MB / 0.8516 GB, free: 143.8 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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,62.5%), (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.01203/1.713, allocations: 10.56 MB / 0.8619 GB, free: 133.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01032/1.723, allocations: 7.849 MB / 0.8695 GB, free: 125.2 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/1.724, allocations: 7.938 kB / 0.8696 GB, free: 125.2 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004454/1.728, allocations: 3.632 MB / 0.8731 GB, free: 121.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007418/1.735, allocations: 1.391 MB / 0.8745 GB, free: 120.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09881/1.834, allocations: 67.42 MB / 0.9403 GB, free: 48.75 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006986/1.841, allocations: 7.42 MB / 0.9475 GB, free: 41.29 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005394/1.847, allocations: 2.194 MB / 0.9497 GB, free: 39.08 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004641/1.851, allocations: 4.498 MB / 0.9541 GB, free: 34.58 MB / 0.5763 GB Notification: Performance of SimCode: time 7.71e-07/1.851, allocations: 0 / 0.9541 GB, free: 34.58 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4198/2.271, allocations: 153.5 MB / 1.104 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.58/25.85, allocations: 24.02 kB / 1.104 GB, free: 109.6 MB / 0.5763 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches