Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.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.QuasiStatic.Polyphase.Examples.BalancingDelta,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta") [: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.001023/0.001023, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.174/1.174, allocations: 221.4 MB / 230 MB, free: 3.016 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.001118/0.001118, allocations: 102 kB / 280.8 MB, free: 1.328 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.421e-05/1.425e-05, allocations: 0 / 336.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2157, allocations: 50.4 MB / 386.9 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0993/0.315, allocations: 88.62 MB / 475.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.3154, allocations: 83.89 kB / 475.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3869/0.7022, allocations: 133.4 MB / 0.5947 GB, free: 11.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001183/0.7024, allocations: 83.94 kB / 0.5948 GB, free: 11.77 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: 1104 * Number of variables: 1104 Notification: Performance of Generate backend data structure: time 0.009388/0.7118, allocations: 3.724 MB / 0.5984 GB, free: 7.984 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.7118, allocations: 8.031 kB / 0.5984 GB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005431/0.7173, allocations: 0.9518 MB / 0.5993 GB, free: 7.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004148/0.7214, allocations: 2.442 MB / 0.6017 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.7216, allocations: 128 kB / 0.6019 GB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005671/0.7222, allocations: 223.9 kB / 0.6021 GB, free: 4.188 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006538/0.7287, allocations: 4.203 MB / 0.6062 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009458/0.7382, allocations: 5.302 MB / 0.6113 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.539e-05/0.7383, allocations: 7.984 kB / 0.6114 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003299/0.7386, allocations: 0 / 0.6114 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002584/0.7389, allocations: 288.4 kB / 0.6116 GB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02708/0.766, allocations: 17.9 MB / 0.6291 GB, free: 7.711 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.7676, allocations: 1.262 MB / 0.6303 GB, free: 6.441 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008097/0.7684, allocations: 0.6796 MB / 0.631 GB, free: 5.762 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.7685, allocations: 110.1 kB / 0.6311 GB, free: 5.637 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.7686, allocations: 43.56 kB / 0.6312 GB, free: 5.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=106): time 3.306e-06/0.7686, allocations: 0 / 0.6312 GB, free: 5.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=106): time 0.002426/0.771, allocations: 1.326 MB / 0.6324 GB, free: 4.242 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.7711, allocations: 64.41 kB / 0.6325 GB, free: 4.168 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/0.773, allocations: 1.156 MB / 0.6336 GB, free: 2.996 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.226e-05/0.7731, allocations: 25.7 kB / 0.6337 GB, free: 2.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009362/0.7741, allocations: 1.671 MB / 0.6353 GB, free: 1.266 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/0.7744, allocations: 370.8 kB / 0.6356 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.883e-05/0.7745, allocations: 4 kB / 0.6356 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002377/0.7747, allocations: 443 kB / 0.6361 GB, free: 464 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.7759, allocations: 0.8985 MB / 0.6369 GB, free: 15.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.7777, allocations: 1.87 MB / 0.6388 GB, free: 13.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.7799, allocations: 1.427 MB / 0.6402 GB, free: 11.76 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/0.7799, allocations: 8 kB / 0.6402 GB, free: 11.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=279) (initialization): time 0.004469/0.7844, allocations: 2.745 MB / 0.6429 GB, free: 9.004 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.7844, allocations: 8.031 kB / 0.6429 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.172e-05/0.7844, allocations: 36 kB / 0.6429 GB, free: 8.961 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.65e-05/0.7845, allocations: 52 kB / 0.6429 GB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/0.7864, allocations: 0.5187 MB / 0.6435 GB, free: 8.391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-05/0.7865, allocations: 67.72 kB / 0.6435 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.7879, allocations: 245.2 kB / 0.6438 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/0.7882, allocations: 116 kB / 0.6439 GB, free: 7.969 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 154 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 271 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00029/0.7885, allocations: 192 kB / 0.644 GB, free: 7.773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.7887, allocations: 122.5 kB / 0.6442 GB, free: 7.652 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.7918, allocations: 1.682 MB / 0.6458 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00199/0.7938, allocations: 1.203 MB / 0.647 GB, free: 4.734 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.7938, allocations: 7.984 kB / 0.647 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.7938, allocations: 3.984 kB / 0.647 GB, free: 4.723 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.162/0.9558, allocations: 13.43 MB / 0.6601 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.9558, allocations: 22.31 kB / 0.6601 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009507/0.9568, allocations: 236.1 kB / 0.6604 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.486e-05/0.9568, allocations: 28.72 kB / 0.6604 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.413e-05/0.9569, allocations: 37.88 kB / 0.6604 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.39e-05/0.957, allocations: 46.12 kB / 0.6605 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.775e-05/0.957, allocations: 33.5 kB / 0.6605 GB, free: 119.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003512/0.9605, allocations: 4.248 MB / 0.6646 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003379/0.9609, allocations: 242 kB / 0.6649 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.9611, allocations: 34.66 kB / 0.6649 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008588/0.9619, allocations: 56.67 kB / 0.665 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.9621, allocations: 130 kB / 0.6651 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.073e-05/0.9622, allocations: 59.78 kB / 0.6651 GB, free: 116.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001/0.9632, allocations: 0.8493 MB / 0.666 GB, free: 116.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002501/0.9657, allocations: 0.8436 MB / 0.6668 GB, free: 116.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 99 * Number of states: 1 (currentSensor31.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003519/0.9661, allocations: 212.2 kB / 0.667 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.9688, allocations: 1.995 MB / 0.6689 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/0.9688, allocations: 3.375 kB / 0.6689 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009155/0.9698, allocations: 0.707 MB / 0.6696 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001668/0.9714, allocations: 284.5 kB / 0.6699 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009336/0.9808, allocations: 5.444 MB / 0.6752 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002702/0.9835, allocations: 2.993 MB / 0.6781 GB, free: 113.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.463e-06/0.9835, allocations: 0 / 0.6781 GB, free: 113.9 MB / 426.7 MB Notification: Performance of Templates: time 0.0354/1.019, allocations: 20.39 MB / 0.6981 GB, free: 112.7 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingDelta/BalancingDelta.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingDelta.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches