Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) [: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.0009952/0.0009953, allocations: 183.4 kB / 8.135 MB, free: 2.223 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.111/1.111, allocations: 221.4 MB / 230 MB, free: 3.344 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.000909/0.000909, allocations: 105.7 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08582/0.08676, allocations: 55.82 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.2605, allocations: 50.4 MB / 387 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08889/0.3495, allocations: 91.92 MB / 478.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.3497, allocations: 87.94 kB / 479 MB, free: 10.75 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.2887/0.6385, allocations: 76.7 MB / 0.5427 GB, free: 65.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.6385, allocations: 12 kB / 0.5427 GB, free: 65.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.6396, allocations: 399.6 kB / 0.5431 GB, free: 64.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003813/0.6435, allocations: 2.184 MB / 0.5452 GB, free: 62.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.152e-05/0.6436, allocations: 104 kB / 0.5453 GB, free: 62.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003931/0.644, allocations: 168 kB / 0.5455 GB, free: 62.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004132/0.6481, allocations: 2.987 MB / 0.5484 GB, free: 59.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004633/0.6527, allocations: 3.665 MB / 0.552 GB, free: 55.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/0.6528, allocations: 3.984 kB / 0.552 GB, free: 55.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.653, allocations: 7.938 kB / 0.552 GB, free: 55.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-05/0.6531, allocations: 137.9 kB / 0.5521 GB, free: 55.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01242/0.6656, allocations: 10.5 MB / 0.5624 GB, free: 44.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.6672, allocations: 1.521 MB / 0.5639 GB, free: 43.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.6686, allocations: 1.354 MB / 0.5652 GB, free: 41.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002395/0.6688, allocations: 142 kB / 0.5653 GB, free: 41.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.6689, allocations: 51.55 kB / 0.5654 GB, free: 41.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 2.875e-06/0.6689, allocations: 0 / 0.5654 GB, free: 41.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.005874/0.6748, allocations: 4.323 MB / 0.5696 GB, free: 37.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.596e-05/0.6748, allocations: 90.42 kB / 0.5697 GB, free: 37.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/0.6763, allocations: 1.452 MB / 0.5711 GB, free: 35.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-05/0.6764, allocations: 25.7 kB / 0.5711 GB, free: 35.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.6767, allocations: 1.09 MB / 0.5722 GB, free: 34.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002029/0.6769, allocations: 437.4 kB / 0.5726 GB, free: 34.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.677, allocations: 4 kB / 0.5726 GB, free: 34.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.677, allocations: 369.9 kB / 0.573 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008519/0.6779, allocations: 0.7926 MB / 0.5737 GB, free: 32.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009637/0.6789, allocations: 1.13 MB / 0.5748 GB, free: 31.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.68, allocations: 1.002 MB / 0.5758 GB, free: 30.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.68, allocations: 4 kB / 0.5758 GB, free: 30.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.002992/0.683, allocations: 2.379 MB / 0.5781 GB, free: 28.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.683, allocations: 4 kB / 0.5781 GB, free: 28.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.683, allocations: 19.98 kB / 0.5782 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008406/0.6839, allocations: 380.6 kB / 0.5785 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.6852, allocations: 315.6 kB / 0.5788 GB, free: 27.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00386/0.6891, allocations: 3.962 MB / 0.5827 GB, free: 23.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009693/0.69, allocations: 55.86 kB / 0.5827 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.6902, allocations: 63.98 kB / 0.5828 GB, free: 23.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 149 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001871/0.6904, allocations: 140.5 kB / 0.5829 GB, free: 23.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.6906, allocations: 173.8 kB / 0.5831 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/0.6934, allocations: 2.082 MB / 0.5851 GB, free: 20.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.6934, allocations: 12 kB / 0.5852 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.6934, allocations: 8 kB / 0.5852 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.6934, allocations: 7.969 kB / 0.5852 GB, free: 20.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005851/0.6993, allocations: 4.678 MB / 0.5897 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/0.6993, allocations: 4 kB / 0.5897 GB, free: 16.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/0.7003, allocations: 219.8 kB / 0.5899 GB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008247/0.7012, allocations: 361 kB / 0.5903 GB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.753e-05/0.7013, allocations: 15.98 kB / 0.5903 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00379/0.705, allocations: 3.933 MB / 0.5941 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.7051, allocations: 0 / 0.5941 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003515/0.7086, allocations: 3.294 MB / 0.5974 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004528/0.7131, allocations: 4.83 MB / 0.6021 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006364/0.7138, allocations: 458.8 kB / 0.6025 GB, free: 2.785 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.714, allocations: 4 kB / 0.6025 GB, free: 2.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.715, allocations: 71.98 kB / 0.6026 GB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.7152, allocations: 80.83 kB / 0.6027 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.713e-05/0.7152, allocations: 43.98 kB / 0.6027 GB, free: 2.586 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00115/0.7164, allocations: 1.107 MB / 0.6038 GB, free: 1.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001883/0.7183, allocations: 0.5077 MB / 0.6043 GB, free: 0.9727 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003183/0.7186, allocations: 206.9 kB / 0.6045 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.7215, allocations: 2.181 MB / 0.6066 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7215, allocations: 2.438 kB / 0.6066 GB, free: 14.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.7231, allocations: 1.23 MB / 0.6078 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.7247, allocations: 340.8 kB / 0.6081 GB, free: 12.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00803/0.7327, allocations: 4.643 MB / 0.6127 GB, free: 8.223 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/0.7352, allocations: 2.6 MB / 0.6152 GB, free: 5.59 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.7352, allocations: 0 / 0.6152 GB, free: 5.59 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat