Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",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.001012/0.001012, allocations: 183.1 kB / 8.13 MB, free: 2.219 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.114/1.114, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009133/0.0009133, allocations: 98.03 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09448/0.09543, allocations: 55.82 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.3137, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08614/0.3999, allocations: 86.29 MB / 473.3 MB, free: 472 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000176/0.4001, allocations: 87.89 kB / 473.4 MB, free: 384 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.06178/0.4619, allocations: 27.14 MB / 0.4888 GB, free: 4.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.4619, allocations: 11.94 kB / 0.4888 GB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003448/0.4654, allocations: 0.5219 MB / 0.4893 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007388/0.4661, allocations: 430.8 kB / 0.4897 GB, free: 3.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.4662, allocations: 32 kB / 0.4897 GB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.4663, allocations: 55.98 kB / 0.4898 GB, free: 3.816 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001592/0.4679, allocations: 0.8162 MB / 0.4906 GB, free: 3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.4694, allocations: 0.7791 MB / 0.4914 GB, free: 2.207 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.063e-05/0.4694, allocations: 0 / 0.4914 GB, free: 2.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.459e-05/0.4695, allocations: 0 / 0.4914 GB, free: 2.207 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4695, allocations: 28 kB / 0.4914 GB, free: 2.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1471/0.6166, allocations: 3.306 MB / 0.4946 GB, free: 66.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.6174, allocations: 0.5753 MB / 0.4952 GB, free: 66.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.6177, allocations: 232.7 kB / 0.4954 GB, free: 66.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/0.6178, allocations: 106.4 kB / 0.4955 GB, free: 66.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.761e-05/0.6178, allocations: 41.5 kB / 0.4955 GB, free: 66.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 3.296e-06/0.6178, allocations: 0 / 0.4955 GB, free: 66.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.0009872/0.6188, allocations: 0.5014 MB / 0.496 GB, free: 66.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.6188, allocations: 117.5 kB / 0.4961 GB, free: 65.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.619, allocations: 219.4 kB / 0.4964 GB, free: 65.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.6191, allocations: 27.23 kB / 0.4964 GB, free: 65.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.6192, allocations: 371.2 kB / 0.4967 GB, free: 65.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.987e-05/0.6193, allocations: 215.6 kB / 0.4969 GB, free: 65.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.6193, allocations: 0 / 0.4969 GB, free: 65.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.6194, allocations: 346.5 kB / 0.4973 GB, free: 65.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002562/0.6196, allocations: 197.7 kB / 0.4975 GB, free: 65.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.62, allocations: 399.4 kB / 0.4978 GB, free: 64.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005921/0.6206, allocations: 293 kB / 0.4981 GB, free: 64.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.6206, allocations: 3 kB / 0.4981 GB, free: 64.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001097/0.6217, allocations: 0.6774 MB / 0.4988 GB, free: 64.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.6217, allocations: 11.09 kB / 0.4988 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.6217, allocations: 9.531 kB / 0.4988 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.6217, allocations: 11.19 kB / 0.4988 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007227/0.6225, allocations: 191.5 kB / 0.499 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.6225, allocations: 15.78 kB / 0.499 GB, free: 64.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004036/0.6229, allocations: 68.62 kB / 0.4991 GB, free: 64.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.6229, allocations: 33.84 kB / 0.4991 GB, free: 64.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001023/0.6231, allocations: 123.2 kB / 0.4992 GB, free: 64.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.6232, allocations: 41.91 kB / 0.4993 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.6243, allocations: 0.6268 MB / 0.4999 GB, free: 64.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.6243, allocations: 11.19 kB / 0.4999 GB, free: 64.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6243, allocations: 0 / 0.4999 GB, free: 64.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.6243, allocations: 3.656 kB / 0.4999 GB, free: 64.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001849/0.6262, allocations: 1.357 MB / 0.5012 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.6262, allocations: 3.531 kB / 0.5012 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.6268, allocations: 138.8 kB / 0.5014 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.6268, allocations: 3.938 kB / 0.5014 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.6268, allocations: 9.406 kB / 0.5014 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.6268, allocations: 6.469 kB / 0.5014 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6269, allocations: 0 / 0.5014 GB, free: 64.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001173/0.628, allocations: 1.084 MB / 0.5024 GB, free: 63.97 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001482/0.6295, allocations: 1.753 MB / 0.5041 GB, free: 63.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.437e-05/0.6296, allocations: 122.8 kB / 0.5043 GB, free: 63.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.865e-05/0.6297, allocations: 0 / 0.5043 GB, free: 63.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003893/0.6301, allocations: 16.64 kB / 0.5043 GB, free: 63.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.6302, allocations: 43.67 kB / 0.5043 GB, free: 63.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.6302, allocations: 21.25 kB / 0.5043 GB, free: 63.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000106/0.6303, allocations: 160.5 kB / 0.5045 GB, free: 63.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001239/0.6316, allocations: 229.5 kB / 0.5047 GB, free: 63.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002246/0.6318, allocations: 162.1 kB / 0.5049 GB, free: 62.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006847/0.6325, allocations: 0.5595 MB / 0.5054 GB, free: 62.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.6325, allocations: 0.5625 kB / 0.5054 GB, free: 62.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.6328, allocations: 275.2 kB / 0.5057 GB, free: 62.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.6331, allocations: 13.97 kB / 0.5057 GB, free: 62.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/0.6346, allocations: 0.9026 MB / 0.5066 GB, free: 62.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004694/0.6351, allocations: 0.9864 MB / 0.5075 GB, free: 61.87 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6351, allocations: 0 / 0.5075 GB, free: 61.87 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat