Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00151/0.00151, allocations: 179.5 kB / 8.479 MB, free: 1.891 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.157/1.157, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008543/0.0008544, allocations: 97.91 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.881e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06386/0.06388, allocations: 47.58 MB / 362.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2273/0.2912, allocations: 109.2 MB / 471.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.2915, allocations: 86.77 kB / 471.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1344/0.4259, allocations: 52.02 MB / 0.5116 GB, free: 3.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001569/0.4261, allocations: 71.88 kB / 0.5116 GB, free: 3.094 MB / 362.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.004697/0.4308, allocations: 2.57 MB / 0.5141 GB, free: 476 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.4308, allocations: 15.97 kB / 0.5141 GB, free: 460 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000863/0.4317, allocations: 348.1 kB / 0.5145 GB, free: 108 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003545/0.4353, allocations: 1.915 MB / 0.5164 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.4354, allocations: 88 kB / 0.5164 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.4357, allocations: 147.9 kB / 0.5166 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00395/0.4397, allocations: 2.4 MB / 0.5189 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004361/0.444, allocations: 2.872 MB / 0.5217 GB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.724e-05/0.4441, allocations: 11.84 kB / 0.5217 GB, free: 8.469 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001957/0.4443, allocations: 4 kB / 0.5217 GB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.4444, allocations: 116.9 kB / 0.5219 GB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01428/0.4587, allocations: 10 MB / 0.5316 GB, free: 14.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.46, allocations: 0.8956 MB / 0.5325 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.4611, allocations: 0.7846 MB / 0.5333 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003185/0.4614, allocations: 223.1 kB / 0.5335 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.4615, allocations: 43.56 kB / 0.5335 GB, free: 12.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=107): time 2.574e-06/0.4615, allocations: 0 / 0.5335 GB, free: 12.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=137): time 0.009818/0.4713, allocations: 5.186 MB / 0.5386 GB, free: 6.762 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.4714, allocations: 64.72 kB / 0.5386 GB, free: 6.688 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.4732, allocations: 1.308 MB / 0.5399 GB, free: 5.375 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.473e-05/0.4733, allocations: 29.7 kB / 0.5399 GB, free: 5.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.4739, allocations: 1.02 MB / 0.5409 GB, free: 4.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003244/0.4742, allocations: 457.2 kB / 0.5414 GB, free: 3.852 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.062e-05/0.4743, allocations: 0 / 0.5414 GB, free: 3.852 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4744, allocations: 373.9 kB / 0.5417 GB, free: 3.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.4755, allocations: 0.7809 MB / 0.5425 GB, free: 2.699 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.4772, allocations: 1.28 MB / 0.5437 GB, free: 1.195 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.4786, allocations: 1.013 MB / 0.5447 GB, free: 188 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.4786, allocations: 8 kB / 0.5447 GB, free: 180 kB / 394.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003698/0.4823, allocations: 2.394 MB / 0.5471 GB, free: 13.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.4823, allocations: 5.875 kB / 0.5471 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.4824, allocations: 16 kB / 0.5471 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006226/0.483, allocations: 239.6 kB / 0.5473 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/0.4847, allocations: 443.2 kB / 0.5478 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.487, allocations: 2.84 MB / 0.5505 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.4884, allocations: 72.03 kB / 0.5506 GB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.4886, allocations: 79.98 kB / 0.5507 GB, free: 9.836 MB / 410.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.0002732/0.4888, allocations: 152.4 kB / 0.5508 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002814/0.4891, allocations: 177.8 kB / 0.551 GB, free: 9.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003339/0.4925, allocations: 2.07 MB / 0.553 GB, free: 7.402 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.4925, allocations: 16 kB / 0.553 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.4925, allocations: 0 / 0.553 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.379e-05/0.4925, allocations: 7.969 kB / 0.553 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007256/0.4998, allocations: 4.54 MB / 0.5575 GB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4998, allocations: 4 kB / 0.5575 GB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.5011, allocations: 279.9 kB / 0.5577 GB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005434/0.5017, allocations: 203.3 kB / 0.5579 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.64e-05/0.5018, allocations: 15.89 kB / 0.5579 GB, free: 2.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.5039, allocations: 2.824 MB / 0.5607 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.504, allocations: 7.938 kB / 0.5607 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004327/0.5083, allocations: 3.416 MB / 0.564 GB, free: 11.65 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008462/0.5092, allocations: 438.7 kB / 0.5645 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002703/0.5094, allocations: 8 kB / 0.5645 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009505/0.5104, allocations: 55.98 kB / 0.5645 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.5106, allocations: 73.14 kB / 0.5646 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.933e-05/0.5107, allocations: 36 kB / 0.5646 GB, free: 11.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001441/0.5121, allocations: 0.9774 MB / 0.5656 GB, free: 10.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001565/0.5137, allocations: 460 kB / 0.566 GB, free: 9.605 MB / 426.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.0005635/0.5143, allocations: 381.2 kB / 0.5664 GB, free: 9.227 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.5175, allocations: 2.336 MB / 0.5687 GB, free: 6.824 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5175, allocations: 0 / 0.5687 GB, free: 6.824 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.5192, allocations: 1.344 MB / 0.57 GB, free: 5.422 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.5209, allocations: 373.1 kB / 0.5703 GB, free: 5.055 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007509/0.5284, allocations: 3.958 MB / 0.5742 GB, free: 1.008 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1122/0.6406, allocations: 2.216 MB / 0.5764 GB, free: 155.7 MB / 426.7 MB Notification: Performance of SimCode: time 9.61e-07/0.6406, allocations: 0 / 0.5764 GB, free: 155.7 MB / 426.7 MB Notification: Performance of Templates: time 0.03739/0.678, allocations: 23.71 MB / 0.5995 GB, free: 154.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches