Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 trunk/package.mo): time 0.001158/0.001158, allocations: 195.9 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008639/0.0008639, allocations: 96.55 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.476e-06, allocations: 4 kB / 343.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.09166, allocations: 51.47 MB / 394.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2352/0.3269, allocations: 110.3 MB / 0.493 GB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.3271, allocations: 82.02 kB / 0.4931 GB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1332/0.4603, allocations: 52.29 MB / 0.5442 GB, free: 100 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001798/0.4605, allocations: 71.88 kB / 0.5443 GB, free: 28 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004719/0.4653, allocations: 2.589 MB / 0.5468 GB, free: 13.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4653, allocations: 12.03 kB / 0.5468 GB, free: 13.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009959/0.4663, allocations: 360 kB / 0.5471 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003514/0.4698, allocations: 1.919 MB / 0.549 GB, free: 11.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.522e-05/0.4699, allocations: 91.98 kB / 0.5491 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002984/0.4702, allocations: 151.8 kB / 0.5493 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003804/0.4741, allocations: 2.396 MB / 0.5516 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004248/0.4783, allocations: 2.848 MB / 0.5544 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-05/0.4784, allocations: 11.89 kB / 0.5544 GB, free: 5.391 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001924/0.4786, allocations: 4 kB / 0.5544 GB, free: 5.387 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000103/0.4787, allocations: 116.9 kB / 0.5545 GB, free: 5.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01377/0.4925, allocations: 10 MB / 0.5643 GB, free: 10.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.4937, allocations: 0.9 MB / 0.5651 GB, free: 10.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.4948, allocations: 0.7769 MB / 0.5659 GB, free: 9.254 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003201/0.4952, allocations: 219.1 kB / 0.5661 GB, free: 9.004 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.4952, allocations: 43.5 kB / 0.5662 GB, free: 8.953 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.975e-06/0.4952, allocations: 4 kB / 0.5662 GB, free: 8.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.009463/0.5047, allocations: 5.202 MB / 0.5712 GB, free: 3.691 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.5047, allocations: 64.72 kB / 0.5713 GB, free: 3.613 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/0.5065, allocations: 1.309 MB / 0.5726 GB, free: 2.301 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.988e-05/0.5066, allocations: 25.7 kB / 0.5726 GB, free: 2.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005389/0.5071, allocations: 1.02 MB / 0.5736 GB, free: 1.234 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003396/0.5074, allocations: 457.2 kB / 0.574 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.5075, allocations: 4 kB / 0.574 GB, free: 0.7773 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.5077, allocations: 373.9 kB / 0.5744 GB, free: 416 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1177/0.6254, allocations: 0.7754 MB / 0.5752 GB, free: 138.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.6267, allocations: 1.283 MB / 0.5764 GB, free: 137.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.6279, allocations: 1.007 MB / 0.5774 GB, free: 137.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.6279, allocations: 3.812 kB / 0.5774 GB, free: 137.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003274/0.6312, allocations: 2.39 MB / 0.5797 GB, free: 137.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.6312, allocations: 7.531 kB / 0.5797 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.6313, allocations: 14.72 kB / 0.5797 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005623/0.6318, allocations: 245.8 kB / 0.58 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.6334, allocations: 431.2 kB / 0.5804 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.6352, allocations: 2.842 MB / 0.5832 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.6366, allocations: 66.41 kB / 0.5832 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.6367, allocations: 76.33 kB / 0.5833 GB, free: 135.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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.0002481/0.637, allocations: 161 kB / 0.5835 GB, free: 135.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/0.6372, allocations: 175.6 kB / 0.5836 GB, free: 135.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.6402, allocations: 2.08 MB / 0.5857 GB, free: 135.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.6402, allocations: 12.66 kB / 0.5857 GB, free: 135.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.6402, allocations: 2.656 kB / 0.5857 GB, free: 135.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.6402, allocations: 7.312 kB / 0.5857 GB, free: 135.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006396/0.6466, allocations: 4.555 MB / 0.5901 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.6466, allocations: 3.703 kB / 0.5901 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.6479, allocations: 284.7 kB / 0.5904 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004891/0.6484, allocations: 198.1 kB / 0.5906 GB, free: 134.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.868e-05/0.6485, allocations: 13.91 kB / 0.5906 GB, free: 134.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.6502, allocations: 2.816 MB / 0.5934 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.6502, allocations: 13.81 kB / 0.5934 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003752/0.6539, allocations: 3.432 MB / 0.5967 GB, free: 131.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009498/0.6549, allocations: 437.9 kB / 0.5971 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003261/0.6552, allocations: 3.594 kB / 0.5971 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001032/0.6563, allocations: 60.84 kB / 0.5972 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002142/0.6565, allocations: 68.5 kB / 0.5973 GB, free: 131.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.6566, allocations: 38.88 kB / 0.5973 GB, free: 131.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001331/0.658, allocations: 0.9789 MB / 0.5983 GB, free: 131.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001453/0.6594, allocations: 468.6 kB / 0.5987 GB, free: 131.6 MB / 442.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 (134): * Single equations (assignments): 130 * 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.0005185/0.66, allocations: 379.8 kB / 0.5991 GB, free: 131.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.6627, allocations: 2.343 MB / 0.6014 GB, free: 131.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.6627, allocations: 0 / 0.6014 GB, free: 131.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.6641, allocations: 1.351 MB / 0.6027 GB, free: 130.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.6659, allocations: 377.4 kB / 0.603 GB, free: 130.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00645/0.6723, allocations: 3.961 MB / 0.6069 GB, free: 129.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001974/0.6743, allocations: 2.219 MB / 0.6091 GB, free: 129 MB / 442.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6743, allocations: 2.953 kB / 0.6091 GB, free: 129 MB / 442.7 MB Notification: Performance of Templates: time 0.03994/0.7143, allocations: 23.8 MB / 0.6323 GB, free: 127.8 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches