Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001003/0.001004, allocations: 177.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.241/1.241, allocations: 205.4 MB / 223.6 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007092/0.0007093, allocations: 85.42 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002895, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.201, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.3241, allocations: 119.2 MB / 494.9 MB, free: 9.379 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.3245, allocations: 95.95 kB / 495 MB, free: 9.285 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3282/0.6527, allocations: 80.26 MB / 0.5618 GB, free: 55.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.6527, allocations: 0 / 0.5618 GB, free: 55.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002022/0.6529, allocations: 95.81 kB / 0.5619 GB, free: 55.77 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007097/0.66, allocations: 3.799 MB / 0.5656 GB, free: 51.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.6601, allocations: 15.97 kB / 0.5656 GB, free: 51.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002261/0.6623, allocations: 0.6402 MB / 0.5662 GB, free: 51.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00466/0.667, allocations: 2.797 MB / 0.569 GB, free: 48.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.6672, allocations: 267.3 kB / 0.5692 GB, free: 48.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000417/0.6676, allocations: 340.3 kB / 0.5695 GB, free: 47.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006009/0.6736, allocations: 4.426 MB / 0.5739 GB, free: 43.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.662e-05/0.6737, allocations: 11.86 kB / 0.5739 GB, free: 43.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.674, allocations: 148 kB / 0.574 GB, free: 43.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001141/0.6741, allocations: 158.8 kB / 0.5742 GB, free: 42.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005186/0.6793, allocations: 3.525 MB / 0.5776 GB, free: 39.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/0.697, allocations: 14.6 MB / 0.5919 GB, free: 24.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003639/0.7006, allocations: 5.39 MB / 0.5971 GB, free: 18.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.7023, allocations: 1.286 MB / 0.5984 GB, free: 16.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005365/0.7076, allocations: 3.873 MB / 0.6022 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.7077, allocations: 43.88 kB / 0.6022 GB, free: 12.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 3.196e-06/0.7077, allocations: 0 / 0.6022 GB, free: 12.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.008174/0.7159, allocations: 5.526 MB / 0.6076 GB, free: 7.246 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.7159, allocations: 68.72 kB / 0.6077 GB, free: 7.168 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/0.7186, allocations: 2.087 MB / 0.6097 GB, free: 5.047 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000125/0.7187, allocations: 45.7 kB / 0.6097 GB, free: 4.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007287/0.7195, allocations: 1.657 MB / 0.6114 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002482/0.7197, allocations: 457.4 kB / 0.6118 GB, free: 2.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.673e-05/0.7198, allocations: 40 kB / 0.6118 GB, free: 2.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.7199, allocations: 377.9 kB / 0.6122 GB, free: 2.453 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009955/0.7209, allocations: 0.7261 MB / 0.6129 GB, free: 1.727 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.7221, allocations: 1.335 MB / 0.6142 GB, free: 116 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002848/0.725, allocations: 2.217 MB / 0.6164 GB, free: 13.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.725, allocations: 4 kB / 0.6164 GB, free: 13.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004103/0.7291, allocations: 2.509 MB / 0.6188 GB, free: 11.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.7292, allocations: 12 kB / 0.6188 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.7292, allocations: 27.92 kB / 0.6189 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003833/0.7296, allocations: 143 kB / 0.619 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/0.7313, allocations: 463.3 kB / 0.6195 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.7337, allocations: 3.086 MB / 0.6225 GB, free: 7.074 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.7354, allocations: 119.9 kB / 0.6226 GB, free: 6.957 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001645/0.7356, allocations: 83.98 kB / 0.6227 GB, free: 6.875 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002379/0.738, allocations: 1.045 MB / 0.6237 GB, free: 5.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005605/0.7386, allocations: 217.2 kB / 0.6239 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005316/0.7439, allocations: 2.204 MB / 0.626 GB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/0.7439, allocations: 12 kB / 0.6261 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-05/0.744, allocations: 4 kB / 0.6261 GB, free: 3.332 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.744, allocations: 7.969 kB / 0.6261 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.7572, allocations: 5.193 MB / 0.6311 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.7572, allocations: 0 / 0.6311 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00167/0.7589, allocations: 235.6 kB / 0.6314 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.76, allocations: 275.5 kB / 0.6316 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.7601, allocations: 28 kB / 0.6316 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009299/0.7694, allocations: 7.127 MB / 0.6386 GB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.7695, allocations: 15.88 kB / 0.6386 GB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008011/0.7775, allocations: 3.214 MB / 0.6418 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/0.7792, allocations: 466.3 kB / 0.6422 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000452/0.7796, allocations: 35.92 kB / 0.6422 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.7812, allocations: 83.91 kB / 0.6423 GB, free: 1.863 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002874/0.7815, allocations: 88.81 kB / 0.6424 GB, free: 1.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.7817, allocations: 43.98 kB / 0.6424 GB, free: 1.734 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003592/0.7853, allocations: 1.412 MB / 0.6438 GB, free: 312 kB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7853, allocations: 4 kB / 0.6438 GB, free: 308 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.1917/0.977, allocations: 0.6071 MB / 0.6444 GB, free: 86.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001153/0.9782, allocations: 452.8 kB / 0.6449 GB, free: 86.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003223/0.9814, allocations: 2.099 MB / 0.6469 GB, free: 86.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.9815, allocations: 0 / 0.6469 GB, free: 86.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.9832, allocations: 1.391 MB / 0.6483 GB, free: 86.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003348/0.9865, allocations: 0.5131 MB / 0.6488 GB, free: 86.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.997, allocations: 7.393 MB / 0.656 GB, free: 82.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00189/0.9989, allocations: 2.364 MB / 0.6583 GB, free: 82.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008095/0.9997, allocations: 173.8 kB / 0.6585 GB, free: 82.12 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.9998, allocations: 0 / 0.6585 GB, free: 82.12 MB / 410.7 MB Notification: Performance of Templates: time 0.08951/1.089, allocations: 100.7 MB / 0.7568 GB, free: 17.91 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches