Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 175.7 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008099/0.0008098, allocations: 97.56 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.0004309, allocations: 11.94 kB / 352.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2638, allocations: 50.39 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/0.5974, allocations: 114.7 MB / 0.5053 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5978, allocations: 86.19 kB / 0.5054 GB, free: 100.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1404/0.7382, allocations: 60.07 MB / 0.564 GB, free: 51.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.7382, allocations: 0 / 0.564 GB, free: 51.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002717/0.7385, allocations: 91.81 kB / 0.5641 GB, free: 50.92 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.008017/0.7465, allocations: 3.327 MB / 0.5674 GB, free: 47.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.7466, allocations: 8.031 kB / 0.5674 GB, free: 47.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002028/0.7486, allocations: 424.2 kB / 0.5678 GB, free: 47.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004963/0.7536, allocations: 2.309 MB / 0.5701 GB, free: 44.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.7538, allocations: 226.2 kB / 0.5703 GB, free: 44.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006036/0.7544, allocations: 292.3 kB / 0.5705 GB, free: 44.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005681/0.7601, allocations: 3.827 MB / 0.5743 GB, free: 40.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-05/0.7602, allocations: 8.125 kB / 0.5743 GB, free: 40.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002825/0.7605, allocations: 135.9 kB / 0.5744 GB, free: 40.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.7606, allocations: 141.7 kB / 0.5746 GB, free: 39.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005266/0.7659, allocations: 3.083 MB / 0.5776 GB, free: 36.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01775/0.7837, allocations: 12.22 MB / 0.5895 GB, free: 24.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/0.7859, allocations: 2.105 MB / 0.5916 GB, free: 22.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.7872, allocations: 1.008 MB / 0.5925 GB, free: 21.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003008/0.7875, allocations: 231.4 kB / 0.5928 GB, free: 20.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.7875, allocations: 51.88 kB / 0.5928 GB, free: 20.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.228e-06/0.7875, allocations: 0 / 0.5928 GB, free: 20.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01364/0.8012, allocations: 7.917 MB / 0.6005 GB, free: 12.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.8012, allocations: 72.7 kB / 0.6006 GB, free: 12.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.8039, allocations: 1.989 MB / 0.6026 GB, free: 10.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.804, allocations: 57.64 kB / 0.6026 GB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006809/0.8047, allocations: 1.444 MB / 0.604 GB, free: 9.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003243/0.8051, allocations: 0.5506 MB / 0.6046 GB, free: 8.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.973e-05/0.8052, allocations: 40 kB / 0.6046 GB, free: 8.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.8053, allocations: 389.9 kB / 0.605 GB, free: 8.094 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.8064, allocations: 0.9292 MB / 0.6059 GB, free: 7.164 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.8078, allocations: 1.495 MB / 0.6073 GB, free: 5.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/0.8107, allocations: 2.623 MB / 0.6099 GB, free: 2.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.8108, allocations: 4 kB / 0.6099 GB, free: 2.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.004582/0.8153, allocations: 3.203 MB / 0.613 GB, free: 15.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.8154, allocations: 14.66 kB / 0.613 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.431e-05/0.8154, allocations: 20 kB / 0.6131 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.8168, allocations: 0.5381 MB / 0.6136 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.8184, allocations: 475.2 kB / 0.614 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007394/0.8258, allocations: 6.293 MB / 0.6202 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001902/0.8277, allocations: 147.7 kB / 0.6203 GB, free: 7.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.8279, allocations: 87.98 kB / 0.6204 GB, free: 7.516 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001885/0.8298, allocations: 0.9389 MB / 0.6213 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/0.8303, allocations: 217.3 kB / 0.6215 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004891/0.8352, allocations: 2.842 MB / 0.6243 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.8352, allocations: 20 kB / 0.6243 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.8353, allocations: 12.12 kB / 0.6243 GB, free: 3.457 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.8353, allocations: 7.969 kB / 0.6243 GB, free: 3.449 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.8463, allocations: 6.057 MB / 0.6303 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.8464, allocations: 7.938 kB / 0.6303 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.8475, allocations: 291.5 kB / 0.6305 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.8491, allocations: 0.5766 MB / 0.6311 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.8492, allocations: 43.97 kB / 0.6312 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008562/0.8578, allocations: 7.991 MB / 0.639 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.8578, allocations: 0 / 0.639 GB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006658/0.8645, allocations: 4.149 MB / 0.643 GB, free: 15.74 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/0.8658, allocations: 0.4981 MB / 0.6435 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/0.8662, allocations: 36 kB / 0.6435 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001137/0.8673, allocations: 107.9 kB / 0.6436 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.8676, allocations: 121.1 kB / 0.6437 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.8677, allocations: 51.98 kB / 0.6438 GB, free: 14.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002322/0.8701, allocations: 1.351 MB / 0.6451 GB, free: 13.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8701, allocations: 0 / 0.6451 GB, free: 13.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002293/0.8724, allocations: 0.6445 MB / 0.6457 GB, free: 12.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * 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 (141): * Single equations (assignments): 138 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006913/0.8731, allocations: 423.8 kB / 0.6461 GB, free: 12.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00481/0.8779, allocations: 2.769 MB / 0.6489 GB, free: 9.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.8779, allocations: 0 / 0.6489 GB, free: 9.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002846/0.8808, allocations: 1.645 MB / 0.6505 GB, free: 7.977 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004005/0.8848, allocations: 0.5244 MB / 0.651 GB, free: 7.453 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.8949, allocations: 7.089 MB / 0.6579 GB, free: 304 kB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1763/1.071, allocations: 2.266 MB / 0.6601 GB, free: 95.86 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00187/1.073, allocations: 0.5302 MB / 0.6606 GB, free: 95.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/1.074, allocations: 157 kB / 0.6608 GB, free: 95.83 MB / 426.7 MB Notification: Performance of SimCode: time 5.91e-07/1.074, allocations: 0 / 0.6608 GB, free: 95.83 MB / 426.7 MB Notification: Performance of Templates: time 0.05286/1.126, allocations: 34.31 MB / 0.6943 GB, free: 94.44 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches