Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.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.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") [: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.001066/0.001066, allocations: 204.7 kB / 8.542 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008798/0.0008798, allocations: 89.45 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.618e-06/9.648e-06, allocations: 4 kB / 343.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.313/0.4233, allocations: 89.57 MB / 484.2 MB, free: 3.652 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.4236, allocations: 78.89 kB / 484.3 MB, free: 3.613 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.5205/0.9441, allocations: 158.7 MB / 0.6279 GB, free: 83.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002748/0.9444, allocations: 97 kB / 0.628 GB, free: 83.24 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01569/0.9601, allocations: 4.129 MB / 0.632 GB, free: 81.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.9601, allocations: 9.234 kB / 0.632 GB, free: 81.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007874/0.968, allocations: 0.9955 MB / 0.633 GB, free: 81.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008012/0.9761, allocations: 2.743 MB / 0.6357 GB, free: 79.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002472/0.9764, allocations: 137.3 kB / 0.6358 GB, free: 79.54 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/0.9777, allocations: 261.2 kB / 0.636 GB, free: 79.53 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009631/0.9874, allocations: 4.626 MB / 0.6406 GB, free: 77.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01403/1.001, allocations: 5.922 MB / 0.6463 GB, free: 74.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.753e-05/1.002, allocations: 7.469 kB / 0.6463 GB, free: 74.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003842/1.002, allocations: 3.625 kB / 0.6463 GB, free: 74.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002694/1.002, allocations: 328.4 kB / 0.6467 GB, free: 74.79 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02836/1.031, allocations: 20.13 MB / 0.6663 GB, free: 63.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/1.032, allocations: 1.288 MB / 0.6676 GB, free: 62.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008142/1.033, allocations: 0.7185 MB / 0.6683 GB, free: 62.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001844/1.033, allocations: 194.4 kB / 0.6685 GB, free: 62.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/1.033, allocations: 42.41 kB / 0.6685 GB, free: 62.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=100): time 3.005e-06/1.033, allocations: 0 / 0.6685 GB, free: 62.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=100): time 0.00208/1.035, allocations: 1.313 MB / 0.6698 GB, free: 61.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/1.035, allocations: 62.56 kB / 0.6698 GB, free: 61.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/1.037, allocations: 1.261 MB / 0.6711 GB, free: 61.26 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.124e-05/1.037, allocations: 25.7 kB / 0.6711 GB, free: 61.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007058/1.038, allocations: 1.863 MB / 0.6729 GB, free: 59.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/1.038, allocations: 350.3 kB / 0.6733 GB, free: 59.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/1.038, allocations: 0 / 0.6733 GB, free: 59.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/1.038, allocations: 449 kB / 0.6737 GB, free: 59.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009711/1.039, allocations: 0.904 MB / 0.6746 GB, free: 58.88 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/1.04, allocations: 2.006 MB / 0.6765 GB, free: 57.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/1.042, allocations: 1.467 MB / 0.678 GB, free: 56.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/1.042, allocations: 9.906 kB / 0.678 GB, free: 56.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003713/1.046, allocations: 2.815 MB / 0.6807 GB, free: 55.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.046, allocations: 10.12 kB / 0.6807 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/1.046, allocations: 48.81 kB / 0.6808 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.575e-05/1.046, allocations: 58.19 kB / 0.6808 GB, free: 55.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/1.048, allocations: 0.5337 MB / 0.6813 GB, free: 55.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.663e-05/1.048, allocations: 83.67 kB / 0.6814 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.049, allocations: 255.7 kB / 0.6817 GB, free: 55.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/1.049, allocations: 124.2 kB / 0.6818 GB, free: 55.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 281 * 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.00024/1.05, allocations: 203 kB / 0.682 GB, free: 55.11 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/1.05, allocations: 133.5 kB / 0.6821 GB, free: 55.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002414/1.052, allocations: 1.637 MB / 0.6837 GB, free: 54.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001434/1.054, allocations: 1.168 MB / 0.6848 GB, free: 54.08 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/1.054, allocations: 0 / 0.6848 GB, free: 54.08 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/1.054, allocations: 9.938 kB / 0.6849 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01448/1.068, allocations: 14.16 MB / 0.6987 GB, free: 40.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/1.068, allocations: 20 kB / 0.6987 GB, free: 40.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/1.069, allocations: 219.6 kB / 0.6989 GB, free: 40.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.367e-05/1.069, allocations: 32 kB / 0.6989 GB, free: 40.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.138e-05/1.069, allocations: 35.98 kB / 0.699 GB, free: 40.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.83e-05/1.069, allocations: 39.86 kB / 0.699 GB, free: 40.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.415e-05/1.069, allocations: 31.88 kB / 0.699 GB, free: 40.18 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003112/1.072, allocations: 4.105 MB / 0.7031 GB, free: 35.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006012/1.073, allocations: 351 kB / 0.7034 GB, free: 34.99 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000197/1.073, allocations: 31.98 kB / 0.7034 GB, free: 34.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008191/1.074, allocations: 52.02 kB / 0.7035 GB, free: 34.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/1.074, allocations: 123.4 kB / 0.7036 GB, free: 34.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.205e-05/1.074, allocations: 55.98 kB / 0.7036 GB, free: 34.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001122/1.075, allocations: 0.933 MB / 0.7046 GB, free: 33.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003025/1.078, allocations: 0.9008 MB / 0.7054 GB, free: 32.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 93 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * 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.0003547/1.079, allocations: 206.5 kB / 0.7056 GB, free: 32.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00246/1.081, allocations: 1.987 MB / 0.7076 GB, free: 30.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.081, allocations: 7.938 kB / 0.7076 GB, free: 30.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006857/1.082, allocations: 0.6651 MB / 0.7082 GB, free: 30.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/1.084, allocations: 329.6 kB / 0.7085 GB, free: 29.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/1.094, allocations: 5.834 MB / 0.7142 GB, free: 23.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003112/1.097, allocations: 3.261 MB / 0.7174 GB, free: 20.23 MB / 442.7 MB Notification: Performance of SimCode: time 1.723e-06/1.097, allocations: 0 / 0.7174 GB, free: 20.23 MB / 442.7 MB Notification: Performance of Templates: time 0.2321/1.33, allocations: 20.89 MB / 0.7378 GB, free: 115.9 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches