Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.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.Polyphase.Examples.TransformerYD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TransformerYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TransformerYD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TransformerYD",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.0009457/0.0009458, allocations: 182.2 kB / 8.129 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.096/1.096, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009316/0.0009316, allocations: 102.6 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09039/0.09135, allocations: 55.82 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.2761, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08075/0.3569, allocations: 81.23 MB / 468.2 MB, free: 5.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.3572, allocations: 67.91 kB / 468.3 MB, free: 5.504 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.04991/0.4071, allocations: 20.41 MB / 488.7 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.4071, allocations: 15.98 kB / 488.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003607/0.4075, allocations: 146.3 kB / 488.9 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.4092, allocations: 0.9177 MB / 489.8 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.772e-05/0.4093, allocations: 39.98 kB / 489.8 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.4094, allocations: 67.91 kB / 489.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001928/0.4114, allocations: 1.137 MB / 491 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.4134, allocations: 1.337 MB / 492.4 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.4134, allocations: 0 / 492.4 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.413e-05/0.4135, allocations: 0 / 492.4 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.978e-05/0.4136, allocations: 28 kB / 492.4 MB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006102/0.4197, allocations: 4.135 MB / 496.5 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006531/0.4203, allocations: 0.5431 MB / 497.1 MB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008585/0.4212, allocations: 0.5994 MB / 497.7 MB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.4212, allocations: 12.44 kB / 497.7 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.4213, allocations: 35 kB / 497.7 MB, free: 7.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 1.543e-06/0.4213, allocations: 0 / 497.7 MB, free: 7.711 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.0008808/0.4222, allocations: 0.5841 MB / 498.3 MB, free: 7.121 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.4222, allocations: 55.84 kB / 498.3 MB, free: 7.055 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008033/0.423, allocations: 0.6791 MB / 499 MB, free: 6.371 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.4231, allocations: 29.7 kB / 499.1 MB, free: 6.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.4233, allocations: 458.4 kB / 499.5 MB, free: 5.879 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.4234, allocations: 169.5 kB / 499.7 MB, free: 5.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.629e-05/0.4235, allocations: 0 / 499.7 MB, free: 5.711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.4236, allocations: 394.7 kB / 0.4883 GB, free: 5.316 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003673/0.424, allocations: 281.2 kB / 0.4886 GB, free: 5.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.4244, allocations: 366.2 kB / 0.489 GB, free: 4.652 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.4249, allocations: 349.2 kB / 0.4893 GB, free: 4.312 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4249, allocations: 0 / 0.4893 GB, free: 4.312 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001016/0.4259, allocations: 0.7687 MB / 0.49 GB, free: 3.535 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.4259, allocations: 4 kB / 0.49 GB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.426, allocations: 0 / 0.49 GB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.426, allocations: 8 kB / 0.49 GB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006304/0.4266, allocations: 160 kB / 0.4902 GB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4266, allocations: 4 kB / 0.4902 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.427, allocations: 47.52 kB / 0.4902 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.427, allocations: 16 kB / 0.4903 GB, free: 3.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0001078/0.4271, allocations: 120.7 kB / 0.4904 GB, free: 3.176 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.4273, allocations: 79.14 kB / 0.4905 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001393/0.4274, allocations: 82.61 kB / 0.4905 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4274, allocations: 4 kB / 0.4905 GB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4274, allocations: 4 kB / 0.4905 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4275, allocations: 0 / 0.4905 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002311/0.4298, allocations: 1.719 MB / 0.4922 GB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4298, allocations: 4.094 kB / 0.4922 GB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.4303, allocations: 115.9 kB / 0.4923 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.4303, allocations: 4 kB / 0.4923 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.4304, allocations: 7.891 kB / 0.4923 GB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.4304, allocations: 15.88 kB / 0.4924 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4304, allocations: 0 / 0.4924 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09944/0.5298, allocations: 1.083 MB / 0.4934 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001323/0.5312, allocations: 1.834 MB / 0.4952 GB, free: 129.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.5313, allocations: 163.7 kB / 0.4954 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.5315, allocations: 2.656 kB / 0.4954 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004349/0.5319, allocations: 47.72 kB / 0.4954 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.912e-05/0.532, allocations: 29.25 kB / 0.4954 GB, free: 129.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/0.532, allocations: 12.28 kB / 0.4955 GB, free: 129.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005063/0.5325, allocations: 0.5367 MB / 0.496 GB, free: 129.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001066/0.5336, allocations: 266.5 kB / 0.4962 GB, free: 129.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (transformerL.inductor[1].i,transformerL.inductor[2].i,transformerL.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * 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.0001615/0.5338, allocations: 110.2 kB / 0.4963 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006131/0.5344, allocations: 0.6132 MB / 0.4969 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5344, allocations: 0 / 0.4969 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.5347, allocations: 301.5 kB / 0.4972 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000607/0.5353, allocations: 135.1 kB / 0.4974 GB, free: 129.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.5378, allocations: 1.832 MB / 0.4991 GB, free: 128.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007583/0.5386, allocations: 1.425 MB / 0.5005 GB, free: 128.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5386, allocations: 0 / 0.5005 GB, free: 128.2 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TransformerYD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Polyphase_Examples_TransformerYD.fmu > Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Polyphase.Examples.TransformerYD_res.mat does not exist to compare? outputFormat=mat