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.001548/0.001548, allocations: 179.5 kB / 16.39 MB, free: 5.766 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.33/1.33, allocations: 223.2 MB / 240.3 MB, free: 10.12 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.0008447/0.0008446, allocations: 92.67 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002395/0.0002395, allocations: 4 kB / 351.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2575, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.355/0.6126, allocations: 114.5 MB / 0.5039 GB, free: 100.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.6129, allocations: 92.58 kB / 0.504 GB, free: 100.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1378/0.7507, allocations: 60.13 MB / 0.5627 GB, free: 51.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7508, allocations: 0 / 0.5627 GB, free: 51.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002609/0.7511, allocations: 87.88 kB / 0.5628 GB, free: 51.18 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.009379/0.7605, allocations: 3.366 MB / 0.5661 GB, free: 47.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.7605, allocations: 8.031 kB / 0.5661 GB, free: 47.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002096/0.7626, allocations: 415.4 kB / 0.5665 GB, free: 47.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005657/0.7683, allocations: 2.243 MB / 0.5687 GB, free: 45.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.7685, allocations: 225.9 kB / 0.5689 GB, free: 44.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006278/0.7691, allocations: 291.9 kB / 0.5692 GB, free: 44.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00629/0.7754, allocations: 3.806 MB / 0.5729 GB, free: 40.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-05/0.7755, allocations: 7.906 kB / 0.5729 GB, free: 40.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.7758, allocations: 120.3 kB / 0.573 GB, free: 40.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/0.7759, allocations: 149.6 kB / 0.5732 GB, free: 40.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004736/0.7807, allocations: 3.087 MB / 0.5762 GB, free: 37.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01752/0.7982, allocations: 12.2 MB / 0.5881 GB, free: 24.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.8006, allocations: 2.108 MB / 0.5902 GB, free: 22.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003328/0.801, allocations: 225.3 kB / 0.5904 GB, free: 22.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.801, allocations: 51.81 kB / 0.5904 GB, free: 22.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.258e-06/0.801, allocations: 0 / 0.5904 GB, free: 22.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.01372/0.8148, allocations: 7.836 MB / 0.5981 GB, free: 14.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.8148, allocations: 68.72 kB / 0.5982 GB, free: 14.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.8174, allocations: 1.776 MB / 0.5999 GB, free: 12.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.8176, allocations: 53.7 kB / 0.5999 GB, free: 12.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/0.8183, allocations: 1.44 MB / 0.6013 GB, free: 10.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003769/0.8187, allocations: 0.5545 MB / 0.6019 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.282e-05/0.8188, allocations: 40 kB / 0.6019 GB, free: 10.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.8189, allocations: 389.9 kB / 0.6023 GB, free: 9.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.8201, allocations: 0.9292 MB / 0.6032 GB, free: 8.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.8215, allocations: 1.491 MB / 0.6047 GB, free: 7.109 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.823, allocations: 1.193 MB / 0.6058 GB, free: 5.922 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/0.8231, allocations: 4 kB / 0.6058 GB, free: 5.918 MB / 378.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004586/0.8276, allocations: 3.203 MB / 0.609 GB, free: 2.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.8277, allocations: 16 kB / 0.609 GB, free: 2.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.012e-05/0.8277, allocations: 16 kB / 0.609 GB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.829, allocations: 0.5423 MB / 0.6095 GB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.8306, allocations: 483.2 kB / 0.61 GB, free: 1.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007216/0.8378, allocations: 6.493 MB / 0.6163 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002298/0.8402, allocations: 147.7 kB / 0.6165 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003187/0.8405, allocations: 87.98 kB / 0.6165 GB, free: 10.64 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 (225): * Single equations (assignments): 222 * 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.002859/0.8434, allocations: 0.9272 MB / 0.6174 GB, free: 9.707 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008883/0.8443, allocations: 221.3 kB / 0.6177 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005649/0.8499, allocations: 2.85 MB / 0.6204 GB, free: 6.621 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.85, allocations: 16 kB / 0.6205 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/0.85, allocations: 11.95 kB / 0.6205 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.85, allocations: 7.969 kB / 0.6205 GB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.8614, allocations: 6.025 MB / 0.6264 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.8615, allocations: 4 kB / 0.6264 GB, free: 456 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.8628, allocations: 283.8 kB / 0.6266 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0016/0.8644, allocations: 0.592 MB / 0.6272 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.8646, allocations: 43.98 kB / 0.6273 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009807/0.8744, allocations: 8.206 MB / 0.6353 GB, free: 6.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.8745, allocations: 4.078 kB / 0.6353 GB, free: 6.914 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006589/0.8811, allocations: 4.295 MB / 0.6395 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/0.8826, allocations: 0.5059 MB / 0.64 GB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.883, allocations: 39.98 kB / 0.64 GB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.8842, allocations: 107.9 kB / 0.6401 GB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.8845, allocations: 113.1 kB / 0.6402 GB, free: 1.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.8846, allocations: 40 kB / 0.6402 GB, free: 1.672 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002336/0.8869, allocations: 1.359 MB / 0.6416 GB, free: 300 kB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.8869, allocations: 0 / 0.6416 GB, free: 300 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.002556/0.8895, allocations: 0.6406 MB / 0.6422 GB, free: 15.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (139): * Single equations (assignments): 136 * 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.0007105/0.8902, allocations: 430.4 kB / 0.6426 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004382/0.8946, allocations: 2.771 MB / 0.6453 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/0.8946, allocations: 4 kB / 0.6453 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.897, allocations: 1.659 MB / 0.6469 GB, free: 10.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002594/0.8996, allocations: 493.6 kB / 0.6474 GB, free: 10.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.9114, allocations: 7.07 MB / 0.6543 GB, free: 3.105 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002096/0.9136, allocations: 2.333 MB / 0.6566 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001845/0.9154, allocations: 0.526 MB / 0.6571 GB, free: 212 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/0.9159, allocations: 163.4 kB / 0.6573 GB, free: 48 kB / 426.7 MB Notification: Performance of SimCode: time 9.82e-07/0.9159, allocations: 0 / 0.6573 GB, free: 48 kB / 426.7 MB Notification: Performance of Templates: time 0.2687/1.185, allocations: 33.91 MB / 0.6904 GB, free: 94.09 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/jenkins/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