Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") [: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.0009836/0.0009836, allocations: 185.3 kB / 8.138 MB, free: 2.18 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.14/1.14, allocations: 221.4 MB / 229.9 MB, free: 3.223 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.000924/0.000924, allocations: 86.94 kB / 280.8 MB, free: 1.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.164e-06/7.183e-06, allocations: 4 kB / 336.5 MB, free: 9.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1787, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1029/0.2816, allocations: 104.4 MB / 491.3 MB, free: 14.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.2819, allocations: 87.94 kB / 491.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2236/0.5054, allocations: 38.74 MB / 0.5177 GB, free: 91.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.972e-05/0.5056, allocations: 47.94 kB / 0.5178 GB, free: 91.76 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.00257/0.5082, allocations: 1.744 MB / 0.5195 GB, free: 89.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.5082, allocations: 8.031 kB / 0.5195 GB, free: 89.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006103/0.5088, allocations: 237.4 kB / 0.5197 GB, free: 89.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.5107, allocations: 1.281 MB / 0.521 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.5108, allocations: 48 kB / 0.521 GB, free: 88.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/0.511, allocations: 95.91 kB / 0.5211 GB, free: 88.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002013/0.513, allocations: 1.482 MB / 0.5225 GB, free: 86.78 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.5153, allocations: 1.754 MB / 0.5243 GB, free: 84.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.5153, allocations: 4 kB / 0.5243 GB, free: 84.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.5154, allocations: 0 / 0.5243 GB, free: 84.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.433e-05/0.5155, allocations: 78.83 kB / 0.5243 GB, free: 84.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007249/0.5228, allocations: 6.584 MB / 0.5308 GB, free: 78.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.5232, allocations: 387.8 kB / 0.5311 GB, free: 77.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.5235, allocations: 268.5 kB / 0.5314 GB, free: 77.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002076/0.5256, allocations: 1.423 MB / 0.5328 GB, free: 75.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.5256, allocations: 42.56 kB / 0.5328 GB, free: 75.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 1.713e-06/0.5256, allocations: 0 / 0.5328 GB, free: 75.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.004125/0.5298, allocations: 2.49 MB / 0.5352 GB, free: 73.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.95e-05/0.5298, allocations: 67.77 kB / 0.5353 GB, free: 73.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.5311, allocations: 1.184 MB / 0.5365 GB, free: 72.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.871e-05/0.5311, allocations: 25.7 kB / 0.5365 GB, free: 72.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002973/0.5314, allocations: 0.8644 MB / 0.5373 GB, free: 71.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.5316, allocations: 205.3 kB / 0.5375 GB, free: 70.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.5316, allocations: 0 / 0.5375 GB, free: 70.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.449e-05/0.5317, allocations: 373.8 kB / 0.5379 GB, free: 70.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005236/0.5322, allocations: 467.8 kB / 0.5383 GB, free: 70.13 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007816/0.533, allocations: 1.371 MB / 0.5397 GB, free: 68.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007551/0.5338, allocations: 0.7383 MB / 0.5404 GB, free: 67.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.5338, allocations: 12 kB / 0.5404 GB, free: 67.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.002281/0.5361, allocations: 1.841 MB / 0.5422 GB, free: 65.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.5361, allocations: 4 kB / 0.5422 GB, free: 65.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/0.5361, allocations: 32 kB / 0.5422 GB, free: 65.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004926/0.5366, allocations: 230.4 kB / 0.5425 GB, free: 65.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.5377, allocations: 371.3 kB / 0.5428 GB, free: 65.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.5388, allocations: 1.642 MB / 0.5444 GB, free: 63.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.54, allocations: 87.61 kB / 0.5445 GB, free: 63.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-05/0.5401, allocations: 91.98 kB / 0.5446 GB, free: 63.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 192 * 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: 1 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001704/0.5402, allocations: 184.1 kB / 0.5448 GB, free: 62.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.5404, allocations: 134.3 kB / 0.5449 GB, free: 62.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.5419, allocations: 0.9848 MB / 0.5459 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.5419, allocations: 7.906 kB / 0.5459 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5419, allocations: 0 / 0.5459 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.5419, allocations: 7.984 kB / 0.5459 GB, free: 61.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00392/0.5458, allocations: 2.922 MB / 0.5487 GB, free: 58.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.5458, allocations: 7.984 kB / 0.5487 GB, free: 58.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003807/0.5462, allocations: 88.3 kB / 0.5488 GB, free: 58.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005768/0.5468, allocations: 230.3 kB / 0.549 GB, free: 58.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.614e-05/0.5469, allocations: 7.984 kB / 0.549 GB, free: 58.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002647/0.5495, allocations: 3.481 MB / 0.5524 GB, free: 54.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001358/0.5509, allocations: 1.876 MB / 0.5543 GB, free: 52.74 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001835/0.5527, allocations: 1.76 MB / 0.556 GB, free: 50.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004653/0.5532, allocations: 291.2 kB / 0.5563 GB, free: 50.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.5534, allocations: 4 kB / 0.5563 GB, free: 50.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000621/0.554, allocations: 27.97 kB / 0.5563 GB, free: 50.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.18e-05/0.5541, allocations: 43.91 kB / 0.5563 GB, free: 50.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.5542, allocations: 16 kB / 0.5564 GB, free: 50.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001005/0.5552, allocations: 0.8484 MB / 0.5572 GB, free: 49.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00141/0.5566, allocations: 347.9 kB / 0.5575 GB, free: 49.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 46 * 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: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003517/0.557, allocations: 344.5 kB / 0.5578 GB, free: 48.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001598/0.5586, allocations: 1.44 MB / 0.5593 GB, free: 47.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5586, allocations: 4 kB / 0.5593 GB, free: 47.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008835/0.5595, allocations: 0.7397 MB / 0.56 GB, free: 46.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.5608, allocations: 303 kB / 0.5603 GB, free: 46.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.5642, allocations: 2.358 MB / 0.5626 GB, free: 43.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.5652, allocations: 1.592 MB / 0.5641 GB, free: 42.28 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5652, allocations: 4 kB / 0.5641 GB, free: 42.27 MB / 378.7 MB Notification: Performance of Templates: time 0.02549/0.5907, allocations: 16.59 MB / 0.5803 GB, free: 25.95 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches