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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 181.7 kB / 8.132 MB, free: 2.168 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.216/1.216, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0008886/0.0008886, allocations: 104.4 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/6.923e-06, allocations: 4 kB / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1748, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1133/0.2881, allocations: 113.7 MB / 0.4889 GB, free: 5.016 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.2884, allocations: 95.62 kB / 0.489 GB, free: 4.926 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2567/0.5452, allocations: 59.1 MB / 0.5467 GB, free: 63.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001777/0.5454, allocations: 87.88 kB / 0.5468 GB, free: 63.88 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.004883/0.5503, allocations: 2.963 MB / 0.5497 GB, free: 60.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.5503, allocations: 8.031 kB / 0.5497 GB, free: 60.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.5514, allocations: 423.4 kB / 0.5501 GB, free: 60.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/0.5553, allocations: 2.239 MB / 0.5523 GB, free: 58.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.997e-05/0.5554, allocations: 96 kB / 0.5524 GB, free: 58.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003632/0.5558, allocations: 179.9 kB / 0.5525 GB, free: 57.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004161/0.5599, allocations: 2.851 MB / 0.5553 GB, free: 55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004505/0.5644, allocations: 3.352 MB / 0.5586 GB, free: 51.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.436e-05/0.5645, allocations: 11.88 kB / 0.5586 GB, free: 51.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/0.5648, allocations: 4 kB / 0.5586 GB, free: 51.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.553e-05/0.5649, allocations: 145.7 kB / 0.5588 GB, free: 51.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01559/0.5805, allocations: 11.65 MB / 0.5701 GB, free: 39.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.5822, allocations: 1.22 MB / 0.5713 GB, free: 38.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.5835, allocations: 1.056 MB / 0.5724 GB, free: 37.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002962/0.5838, allocations: 227.5 kB / 0.5726 GB, free: 36.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.5838, allocations: 55.72 kB / 0.5726 GB, free: 36.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=149): time 2.936e-06/0.5838, allocations: 0 / 0.5726 GB, free: 36.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=171): time 0.009724/0.5935, allocations: 5.952 MB / 0.5784 GB, free: 30.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.5936, allocations: 69.41 kB / 0.5785 GB, free: 30.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.5955, allocations: 1.507 MB / 0.58 GB, free: 29.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.5956, allocations: 29.7 kB / 0.58 GB, free: 29.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.596, allocations: 1.135 MB / 0.5811 GB, free: 27.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003187/0.5964, allocations: 0.5658 MB / 0.5817 GB, free: 27.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.92e-05/0.5965, allocations: 4 kB / 0.5817 GB, free: 27.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.144e-05/0.5966, allocations: 385.9 kB / 0.582 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.5977, allocations: 0.9099 MB / 0.5829 GB, free: 26.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.599, allocations: 1.46 MB / 0.5844 GB, free: 24.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/0.6004, allocations: 1.185 MB / 0.5855 GB, free: 23.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.6004, allocations: 4 kB / 0.5855 GB, free: 23.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004283/0.6047, allocations: 3.028 MB / 0.5885 GB, free: 20.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.6047, allocations: 11.94 kB / 0.5885 GB, free: 20.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.6048, allocations: 19.94 kB / 0.5885 GB, free: 20.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.6061, allocations: 0.5455 MB / 0.589 GB, free: 19.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.6078, allocations: 467.3 kB / 0.5895 GB, free: 19.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005452/0.6133, allocations: 5.71 MB / 0.5951 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.6149, allocations: 79.94 kB / 0.5951 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.6151, allocations: 91.98 kB / 0.5952 GB, free: 12.96 MB / 378.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.0002789/0.6154, allocations: 165.4 kB / 0.5954 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.6157, allocations: 213.5 kB / 0.5956 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004164/0.6199, allocations: 2.748 MB / 0.5983 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.6199, allocations: 19.94 kB / 0.5983 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.6199, allocations: 8 kB / 0.5983 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.6199, allocations: 7.969 kB / 0.5983 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00813/0.6281, allocations: 5.633 MB / 0.6038 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.6281, allocations: 4 kB / 0.6038 GB, free: 4.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.6294, allocations: 283.6 kB / 0.6041 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.6309, allocations: 0.5848 MB / 0.6046 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.631, allocations: 19.98 kB / 0.6047 GB, free: 3.137 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007744/0.6388, allocations: 7.312 MB / 0.6118 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.313e-06/0.6388, allocations: 7.938 kB / 0.6118 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00668/0.6455, allocations: 4.381 MB / 0.6161 GB, free: 6.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.6467, allocations: 0.4945 MB / 0.6166 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/0.6471, allocations: 12 kB / 0.6166 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.6483, allocations: 67.81 kB / 0.6166 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.6485, allocations: 89.17 kB / 0.6167 GB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.6486, allocations: 47.98 kB / 0.6168 GB, free: 6.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001675/0.6503, allocations: 1.12 MB / 0.6179 GB, free: 5.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002032/0.6523, allocations: 0.543 MB / 0.6184 GB, free: 4.492 MB / 394.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.0005787/0.6529, allocations: 409.2 kB / 0.6188 GB, free: 4.086 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.6567, allocations: 2.643 MB / 0.6214 GB, free: 1.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6567, allocations: 6.5 kB / 0.6214 GB, free: 1.395 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002204/0.6589, allocations: 1.536 MB / 0.6229 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.6609, allocations: 416.5 kB / 0.6233 GB, free: 15.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008586/0.6695, allocations: 4.858 MB / 0.628 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002583/0.6721, allocations: 2.473 MB / 0.6304 GB, free: 7.965 MB / 410.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6721, allocations: 0 / 0.6304 GB, free: 7.965 MB / 410.7 MB Notification: Performance of Templates: time 0.1482/0.8203, allocations: 29.4 MB / 0.6591 GB, free: 133.8 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