Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001164/0.001163, allocations: 114.3 kB / 17.28 MB, free: 6.219 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.001226/0.001226, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.329/1.329, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 56.14 kB / 280.3 MB, free: 3.359 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.0907, allocations: 46.62 MB / 326.9 MB, free: 4.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03973/0.1305, allocations: 40.99 MB / 367.9 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.1541, allocations: 10.92 MB / 378.8 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00972/0.1638, allocations: 255.1 kB / 379.1 MB, free: 296 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2061/0.37, allocations: 8.239 MB / 387.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0134/0.3834, allocations: 3.418 MB / 390.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007724/0.3911, allocations: 2.259 MB / 393 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02038/0.4115, allocations: 13.89 MB / 406.9 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04593/0.4575, allocations: 29.12 MB / 436 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01105/0.4686, allocations: 7.208 MB / 443.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01234/0.4809, allocations: 8.316 MB / 451.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003279/0.4842, allocations: 2.027 MB / 453.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00531/0.4896, allocations: 2.422 MB / 456 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003154/0.4927, allocations: 4.25 MB / 460.2 MB, free: 8.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01028/0.503, allocations: 8.039 MB / 468.3 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03528/0.5383, allocations: 26.8 MB / 495.1 MB, free: 6.406 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.5384, allocations: 0 / 495.1 MB, free: 6.406 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5384, allocations: 4 kB / 495.1 MB, free: 6.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0008313/0.5392, allocations: 0 / 495.1 MB, free: 6.402 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.05179/0.591, allocations: 16.05 MB / 0.4991 GB, free: 6.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.5911, allocations: 8.031 kB / 0.4991 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006574/0.5977, allocations: 1.844 MB / 0.5009 GB, free: 4.496 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04876/0.6465, allocations: 9.165 MB / 0.5099 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01957/0.6661, allocations: 7.67 MB / 0.5174 GB, free: 3.727 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001175/0.6673, allocations: 0.9677 MB / 0.5183 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005356/0.6726, allocations: 1.28 MB / 0.5196 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3529/1.026, allocations: 20.51 MB / 0.5396 GB, free: 133 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003509/1.026, allocations: 25.53 kB / 0.5396 GB, free: 133 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001663/1.028, allocations: 0.5276 MB / 0.5402 GB, free: 133 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000723/1.028, allocations: 0.745 MB / 0.5409 GB, free: 133 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03153/1.06, allocations: 19.25 MB / 0.5597 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08015/1.14, allocations: 65.05 MB / 0.6232 GB, free: 74.98 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02668/1.167, allocations: 57.29 MB / 0.6791 GB, free: 10.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00499/1.172, allocations: 4.188 MB / 0.6832 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0179/1.19, allocations: 11.67 MB / 0.6946 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/1.19, allocations: 73.34 kB / 0.6947 GB, free: 10.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=361): time 4.248e-06/1.19, allocations: 0 / 0.6947 GB, free: 10.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=403): time 0.03154/1.221, allocations: 17.86 MB / 0.7121 GB, free: 8.906 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.221, allocations: 94.58 kB / 0.7122 GB, free: 8.801 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/1.229, allocations: 5.686 MB / 0.7178 GB, free: 3.141 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002665/1.229, allocations: 89.7 kB / 0.7179 GB, free: 3.047 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1705/1.4, allocations: 6.045 MB / 0.7238 GB, free: 159.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.401, allocations: 1.422 MB / 0.7252 GB, free: 158.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002306/1.403, allocations: 1.541 MB / 0.7267 GB, free: 158.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.274e-05/1.403, allocations: 301.9 kB / 0.727 GB, free: 158.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004177/1.407, allocations: 3.143 MB / 0.73 GB, free: 157.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005243/1.413, allocations: 6.901 MB / 0.7368 GB, free: 151.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.423, allocations: 10.81 MB / 0.7473 GB, free: 143.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002094/1.423, allocations: 36.28 kB / 0.7474 GB, free: 143.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01666/1.44, allocations: 11.04 MB / 0.7581 GB, free: 138.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.475e-05/1.44, allocations: 60.75 kB / 0.7582 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001551/1.44, allocations: 126.9 kB / 0.7583 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002136/1.443, allocations: 0.9909 MB / 0.7593 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005458/1.448, allocations: 1.855 MB / 0.7611 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008917/1.457, allocations: 10.26 MB / 0.7711 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005567/1.463, allocations: 451.8 kB / 0.7715 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001059/1.464, allocations: 430.7 kB / 0.772 GB, free: 131.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006837/1.47, allocations: 4.514 MB / 0.7764 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/1.472, allocations: 0.5741 MB / 0.7769 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009778/1.482, allocations: 6.706 MB / 0.7835 GB, free: 125.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/1.482, allocations: 42.88 kB / 0.7835 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/1.482, allocations: 8 kB / 0.7835 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.32e-05/1.482, allocations: 25.27 kB / 0.7835 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02284/1.505, allocations: 16.49 MB / 0.7996 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/1.505, allocations: 7.984 kB / 0.7997 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002916/1.507, allocations: 0.7845 MB / 0.8004 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/1.509, allocations: 0.7924 MB / 0.8012 GB, free: 109.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002587/1.51, allocations: 91.97 kB / 0.8013 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007825/1.517, allocations: 9.346 MB / 0.8104 GB, free: 99.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.517, allocations: 7.938 kB / 0.8104 GB, free: 99.49 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/1.529, allocations: 9.82 MB / 0.82 GB, free: 89.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001985/1.531, allocations: 1.115 MB / 0.8211 GB, free: 88.41 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006477/1.532, allocations: 75.94 kB / 0.8212 GB, free: 88.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/1.534, allocations: 227.8 kB / 0.8214 GB, free: 88.11 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005267/1.534, allocations: 281.1 kB / 0.8216 GB, free: 87.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002203/1.535, allocations: 124 kB / 0.8218 GB, free: 87.72 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004632/1.539, allocations: 3.742 MB / 0.8254 GB, free: 84.01 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.81e-07/1.539, allocations: 0 / 0.8254 GB, free: 84.01 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006776/1.546, allocations: 2.05 MB / 0.8274 GB, free: 81.96 MB / 478.1 MB 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01165/1.558, allocations: 10.54 MB / 0.8377 GB, free: 71.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02617/1.584, allocations: 13.87 MB / 0.8513 GB, free: 57.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.584, allocations: 4.062 kB / 0.8513 GB, free: 57.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.588, allocations: 3.623 MB / 0.8548 GB, free: 53.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005334/1.593, allocations: 1.418 MB / 0.8562 GB, free: 52.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.273/1.866, allocations: 97.41 MB / 0.9513 GB, free: 104.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00711/1.873, allocations: 7.698 MB / 0.9588 GB, free: 100.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006169/1.88, allocations: 2.397 MB / 0.9612 GB, free: 98.97 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004425/1.884, allocations: 4.697 MB / 0.9658 GB, free: 94.27 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/1.884, allocations: 0 / 0.9658 GB, free: 94.27 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.368/2.252, allocations: 162.1 MB / 1.124 GB, free: 125 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/2.252, allocations: 293.8 kB / 1.124 GB, free: 124.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.564/7.816, allocations: 0 / 1.124 GB, free: 124.6 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches