Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TransformerYD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_TransformerYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.TransformerYD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_MultiPhase_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 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 179.8 kB / 8.474 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.093/1.093, allocations: 205.2 MB / 214.1 MB, free: 5.168 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008576/0.0008577, allocations: 93.91 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1542/0.1551, allocations: 52.96 MB / 315 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06898/0.2241, allocations: 47.58 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.4362, allocations: 80.21 MB / 442.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.4364, allocations: 70.8 kB / 442.9 MB, free: 10.66 MB / 314.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.04614/0.4826, allocations: 19.94 MB / 462.8 MB, free: 3.707 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.4826, allocations: 9.344 kB / 462.9 MB, free: 3.707 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.483, allocations: 147.5 kB / 463 MB, free: 3.633 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.4848, allocations: 0.9225 MB / 463.9 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.4848, allocations: 35.94 kB / 464 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/0.485, allocations: 63.88 kB / 464 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001787/0.4868, allocations: 1.147 MB / 465.2 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.4888, allocations: 1.354 MB / 466.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.4888, allocations: 0 / 466.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.489, allocations: 1.75 kB / 466.5 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.489, allocations: 30.28 kB / 466.5 MB, free: 2.648 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006564/0.4956, allocations: 4.145 MB / 470.7 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000653/0.4963, allocations: 0.5432 MB / 471.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008141/0.4971, allocations: 0.6075 MB / 471.8 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.4971, allocations: 5.469 kB / 471.8 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.4972, allocations: 36.47 kB / 471.9 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=51): time 2.435e-06/0.4972, allocations: 1.781 kB / 471.9 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.0009433/0.4981, allocations: 0.5809 MB / 472.5 MB, free: 372 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/0.4981, allocations: 57.06 kB / 472.5 MB, free: 304 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008618/0.499, allocations: 0.6894 MB / 473.2 MB, free: 88 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.4991, allocations: 27.02 kB / 473.2 MB, free: 56 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.4993, allocations: 456 kB / 473.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.4995, allocations: 170.8 kB / 473.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.4995, allocations: 3.969 kB / 473.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4997, allocations: 384.4 kB / 474.2 MB, free: 15.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003066/0.5, allocations: 280.6 kB / 474.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.5004, allocations: 381.9 kB / 474.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004103/0.5008, allocations: 344.6 kB / 475.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5008, allocations: 0 / 475.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001024/0.5019, allocations: 0.7532 MB / 476 MB, free: 14.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.5019, allocations: 7.938 kB / 476 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.5019, allocations: 4 kB / 476 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.5019, allocations: 11.94 kB / 476 MB, free: 14.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006899/0.5026, allocations: 155.9 kB / 476.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.5026, allocations: 15.92 kB / 476.2 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004181/0.5031, allocations: 47.42 kB / 476.2 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.5031, allocations: 19.94 kB / 476.2 MB, free: 13.89 MB / 330.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.0001215/0.5032, allocations: 112.9 kB / 476.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.5034, allocations: 71.16 kB / 476.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.5035, allocations: 84.8 kB / 476.5 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5036, allocations: 4 kB / 476.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.5036, allocations: 0 / 476.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.5036, allocations: 7.891 kB / 476.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002694/0.5063, allocations: 1.726 MB / 478.2 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5063, allocations: 4 kB / 478.2 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000569/0.5069, allocations: 122.8 kB / 478.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.5069, allocations: 4 kB / 478.4 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.5069, allocations: 7.141 kB / 478.4 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5069, allocations: 8 kB / 478.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.507, allocations: 0 / 478.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001145/0.5081, allocations: 1.087 MB / 479.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0016/0.5097, allocations: 1.827 MB / 481.3 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002086/0.5099, allocations: 163.4 kB / 481.4 MB, free: 9.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.5101, allocations: 7.531 kB / 481.4 MB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004112/0.5105, allocations: 47.95 kB / 481.5 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.786e-05/0.5106, allocations: 28.08 kB / 481.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/0.5106, allocations: 11.62 kB / 481.5 MB, free: 9.527 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005874/0.5112, allocations: 0.5287 MB / 482.1 MB, free: 9.141 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001284/0.5125, allocations: 274.6 kB / 482.3 MB, free: 8.871 MB / 330.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.0001592/0.5126, allocations: 115.1 kB / 482.4 MB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007215/0.5134, allocations: 0.6068 MB / 483 MB, free: 8.309 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5134, allocations: 0 / 483 MB, free: 8.309 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003327/0.5137, allocations: 300 kB / 483.3 MB, free: 8.098 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006772/0.5144, allocations: 136.9 kB / 483.5 MB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003286/0.5177, allocations: 1.834 MB / 485.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/0.5189, allocations: 1.42 MB / 486.7 MB, free: 4.875 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5189, allocations: 0 / 486.7 MB, free: 4.875 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_TransformerYD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_MultiPhase_Examples_TransformerYD.fmu > Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.MultiPhase.Examples.TransformerYD_res.mat does not exist to compare? outputFormat=mat