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.0009227/0.0009228, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007936/0.0007936, allocations: 89 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.786e-05/1.781e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 50.41 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4211/0.536, allocations: 113.8 MB / 0.4895 GB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.5363, allocations: 87.95 kB / 0.4896 GB, free: 12.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.21/0.7463, allocations: 59.42 MB / 0.5476 GB, free: 1.164 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7464, allocations: 0 / 0.5476 GB, free: 1.164 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003798/0.7468, allocations: 91.88 kB / 0.5477 GB, free: 1.074 MB / 426.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.2724/1.019, allocations: 2.98 MB / 0.5506 GB, free: 96.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/1.019, allocations: 9.75 kB / 0.5506 GB, free: 96.67 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001933/1.021, allocations: 417.7 kB / 0.551 GB, free: 96.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00512/1.026, allocations: 2.218 MB / 0.5532 GB, free: 96.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/1.027, allocations: 95.66 kB / 0.5533 GB, free: 96.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005275/1.027, allocations: 178.7 kB / 0.5535 GB, free: 96.13 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004992/1.032, allocations: 2.798 MB / 0.5562 GB, free: 96.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006041/1.038, allocations: 3.32 MB / 0.5594 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.198e-05/1.038, allocations: 10.08 kB / 0.5594 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/1.038, allocations: 3.312 kB / 0.5594 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001507/1.039, allocations: 141.3 kB / 0.5596 GB, free: 95.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01826/1.057, allocations: 11.65 MB / 0.571 GB, free: 92.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002289/1.059, allocations: 2.073 MB / 0.573 GB, free: 92.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/1.06, allocations: 0.97 MB / 0.5739 GB, free: 92.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002935/1.061, allocations: 232.1 kB / 0.5741 GB, free: 91.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/1.061, allocations: 48.09 kB / 0.5742 GB, free: 91.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=149): time 3.416e-06/1.061, allocations: 0 / 0.5742 GB, free: 91.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=171): time 0.009355/1.07, allocations: 5.884 MB / 0.5799 GB, free: 90.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/1.07, allocations: 76.12 kB / 0.58 GB, free: 90.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/1.072, allocations: 1.49 MB / 0.5815 GB, free: 89.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/1.072, allocations: 25.7 kB / 0.5815 GB, free: 89.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006588/1.073, allocations: 1.442 MB / 0.5829 GB, free: 88.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003558/1.073, allocations: 0.57 MB / 0.5835 GB, free: 88.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.695e-05/1.073, allocations: 0 / 0.5835 GB, free: 88.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/1.073, allocations: 389.3 kB / 0.5838 GB, free: 87.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/1.075, allocations: 0.886 MB / 0.5847 GB, free: 87.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/1.076, allocations: 1.431 MB / 0.5861 GB, free: 86.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/1.077, allocations: 1.152 MB / 0.5872 GB, free: 85.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/1.077, allocations: 6.062 kB / 0.5872 GB, free: 85.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004804/1.082, allocations: 2.983 MB / 0.5901 GB, free: 84.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/1.082, allocations: 13.25 kB / 0.5901 GB, free: 84.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.665e-05/1.082, allocations: 15.62 kB / 0.5902 GB, free: 84.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/1.083, allocations: 0.5387 MB / 0.5907 GB, free: 84.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/1.085, allocations: 488.2 kB / 0.5912 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005361/1.09, allocations: 6.038 MB / 0.597 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/1.092, allocations: 103.8 kB / 0.5971 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/1.092, allocations: 85.5 kB / 0.5972 GB, free: 80.86 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * 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.0002882/1.092, allocations: 167.5 kB / 0.5974 GB, free: 80.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/1.093, allocations: 205.3 kB / 0.5976 GB, free: 80.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/1.097, allocations: 2.706 MB / 0.6002 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/1.097, allocations: 14.62 kB / 0.6002 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/1.097, allocations: 6.969 kB / 0.6002 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/1.097, allocations: 9.766 kB / 0.6003 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00812/1.105, allocations: 5.616 MB / 0.6057 GB, free: 77.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/1.105, allocations: 3.938 kB / 0.6057 GB, free: 77.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/1.106, allocations: 305.8 kB / 0.606 GB, free: 77.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/1.108, allocations: 0.5817 MB / 0.6066 GB, free: 77.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/1.108, allocations: 17.23 kB / 0.6066 GB, free: 77.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006315/1.114, allocations: 7.669 MB / 0.6141 GB, free: 71.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.114, allocations: 3.625 kB / 0.6141 GB, free: 71.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005178/1.119, allocations: 4.249 MB / 0.6183 GB, free: 69.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/1.12, allocations: 0.4978 MB / 0.6187 GB, free: 69.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/1.121, allocations: 10.56 kB / 0.6188 GB, free: 69.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/1.122, allocations: 90.17 kB / 0.6188 GB, free: 69.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/1.122, allocations: 122.2 kB / 0.619 GB, free: 69.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/1.122, allocations: 49.92 kB / 0.619 GB, free: 69.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001433/1.123, allocations: 1.118 MB / 0.6201 GB, free: 69.06 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.62e-07/1.123, allocations: 0 / 0.6201 GB, free: 69.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001954/1.125, allocations: 0.5504 MB / 0.6206 GB, free: 69.04 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * 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.0005324/1.126, allocations: 395.2 kB / 0.621 GB, free: 68.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003258/1.129, allocations: 2.643 MB / 0.6236 GB, free: 67.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.129, allocations: 0.6875 kB / 0.6236 GB, free: 67.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001904/1.131, allocations: 1.618 MB / 0.6252 GB, free: 66.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/1.133, allocations: 424.5 kB / 0.6256 GB, free: 66.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00755/1.141, allocations: 4.77 MB / 0.6302 GB, free: 61.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001551/1.143, allocations: 2.332 MB / 0.6325 GB, free: 59.92 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001681/1.144, allocations: 0.5399 MB / 0.633 GB, free: 59.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004438/1.145, allocations: 155.2 kB / 0.6332 GB, free: 59.41 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.145, allocations: 0 / 0.6332 GB, free: 59.41 MB / 426.7 MB Notification: Performance of Templates: time 0.04114/1.186, allocations: 27.79 MB / 0.6603 GB, free: 39.2 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