Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [: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 3.2.3+maint.om/package.mo): time 0.001617/0.001616, allocations: 176.1 kB / 8.15 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001286/0.001286, allocations: 90.45 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.918e-06/1.021e-05, allocations: 4 kB / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2373, allocations: 47.56 MB / 361.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1674/0.4048, allocations: 109.2 MB / 471 MB, free: 8.824 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/0.4052, allocations: 88.44 kB / 471.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4249/0.8301, allocations: 52.02 MB / 0.5109 GB, free: 98.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002795/0.8304, allocations: 72.94 kB / 0.5109 GB, free: 98.45 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.008681/0.8391, allocations: 2.574 MB / 0.5134 GB, free: 97.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.8392, allocations: 7.625 kB / 0.5135 GB, free: 97.33 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.8411, allocations: 348.8 kB / 0.5138 GB, free: 97.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006357/0.8475, allocations: 1.925 MB / 0.5157 GB, free: 96.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001543/0.8477, allocations: 86.16 kB / 0.5158 GB, free: 96.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000862/0.8486, allocations: 151.2 kB / 0.5159 GB, free: 96.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007796/0.8564, allocations: 2.395 MB / 0.5182 GB, free: 96.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008876/0.8653, allocations: 2.863 MB / 0.521 GB, free: 96.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/0.8655, allocations: 10.88 kB / 0.521 GB, free: 96.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004893/0.866, allocations: 3.25 kB / 0.521 GB, free: 96.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.8661, allocations: 123.1 kB / 0.5212 GB, free: 96.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02622/0.8924, allocations: 10.01 MB / 0.5309 GB, free: 91.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0023/0.8947, allocations: 0.8947 MB / 0.5318 GB, free: 91.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/0.8968, allocations: 0.7737 MB / 0.5326 GB, free: 91.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000461/0.8973, allocations: 219.4 kB / 0.5328 GB, free: 91.03 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.8974, allocations: 50.22 kB / 0.5328 GB, free: 90.98 MB / 394.7 MB Notification: Performance of pre-optimization done (n=107): time 4.008e-06/0.8974, allocations: 0 / 0.5328 GB, free: 90.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=137): time 0.01777/0.9152, allocations: 5.186 MB / 0.5379 GB, free: 88.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.854e-05/0.9153, allocations: 66.09 kB / 0.538 GB, free: 88.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00352/0.9188, allocations: 1.312 MB / 0.5392 GB, free: 88.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003463/0.9192, allocations: 29.17 kB / 0.5393 GB, free: 88.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004952/0.9197, allocations: 0.9762 MB / 0.5402 GB, free: 87.51 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005718/0.9203, allocations: 459.9 kB / 0.5407 GB, free: 87.15 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.9205, allocations: 0 / 0.5407 GB, free: 87.15 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.9206, allocations: 371.6 kB / 0.541 GB, free: 86.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.9228, allocations: 0.78 MB / 0.5418 GB, free: 86.53 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002629/0.9255, allocations: 1.29 MB / 0.543 GB, free: 85.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002794/0.9283, allocations: 1.005 MB / 0.544 GB, free: 85.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.663e-05/0.9284, allocations: 5.344 kB / 0.544 GB, free: 85.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.006587/0.935, allocations: 2.284 MB / 0.5462 GB, free: 84.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.935, allocations: 4.469 kB / 0.5462 GB, free: 84.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.113e-05/0.9351, allocations: 20.94 kB / 0.5463 GB, free: 84.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.9361, allocations: 243 kB / 0.5465 GB, free: 84.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003608/0.9398, allocations: 429.4 kB / 0.5469 GB, free: 84.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003239/0.943, allocations: 2.872 MB / 0.5497 GB, free: 81.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.9449, allocations: 64.52 kB / 0.5498 GB, free: 81.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002191/0.9451, allocations: 75.11 kB / 0.5498 GB, free: 81.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003952/0.9455, allocations: 81.39 kB / 0.5499 GB, free: 81.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006836/0.9462, allocations: 173.8 kB / 0.5501 GB, free: 81.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006231/0.9525, allocations: 2.079 MB / 0.5521 GB, free: 80.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/0.9525, allocations: 13.75 kB / 0.5521 GB, free: 80.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.9526, allocations: 1.094 kB / 0.5521 GB, free: 80.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-05/0.9526, allocations: 8.266 kB / 0.5521 GB, free: 80.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/0.9659, allocations: 4.547 MB / 0.5566 GB, free: 78.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.966, allocations: 0 / 0.5566 GB, free: 78.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002552/0.9686, allocations: 283.9 kB / 0.5569 GB, free: 78.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009603/0.9696, allocations: 209 kB / 0.5571 GB, free: 78.12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/0.9698, allocations: 4 kB / 0.5571 GB, free: 78.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002875/0.9727, allocations: 2.817 MB / 0.5598 GB, free: 75.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.9728, allocations: 7.844 kB / 0.5598 GB, free: 75.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007424/0.9802, allocations: 3.432 MB / 0.5632 GB, free: 71.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/0.9818, allocations: 431 kB / 0.5636 GB, free: 71.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004325/0.9822, allocations: 4 kB / 0.5636 GB, free: 71.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001785/0.984, allocations: 63.11 kB / 0.5636 GB, free: 71.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.9842, allocations: 68.14 kB / 0.5637 GB, free: 71.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/0.9844, allocations: 40 kB / 0.5637 GB, free: 71.47 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002097/0.9865, allocations: 0.9731 MB / 0.5647 GB, free: 70.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002467/0.989, allocations: 459.8 kB / 0.5651 GB, free: 70.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007681/0.9898, allocations: 383.5 kB / 0.5655 GB, free: 69.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.9949, allocations: 2.341 MB / 0.5678 GB, free: 67.64 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.995, allocations: 0 / 0.5678 GB, free: 67.64 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002752/0.9978, allocations: 1.35 MB / 0.5691 GB, free: 66.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003341/1.001, allocations: 365.9 kB / 0.5695 GB, free: 66.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/1.013, allocations: 4.01 MB / 0.5734 GB, free: 62.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003325/1.016, allocations: 2.184 MB / 0.5755 GB, free: 60.64 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/1.016, allocations: 0 / 0.5755 GB, free: 60.64 MB / 394.7 MB Notification: Performance of Templates: time 0.1147/1.131, allocations: 77.68 MB / 0.6514 GB, free: 396 kB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches