Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.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.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_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.0009576/0.0009576, allocations: 182.4 kB / 8.137 MB, free: 2.188 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.066/1.066, 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.0009244/0.0009247, allocations: 96.23 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08767/0.08863, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.257, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09872/0.3558, allocations: 103.5 MB / 490.5 MB, free: 15.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.356, allocations: 96.41 kB / 490.6 MB, free: 15.08 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 2.072/2.428, allocations: 0.81 GB / 1.289 GB, free: 27.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/2.428, allocations: 9.844 kB / 1.289 GB, free: 27.86 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03149/2.46, allocations: 5.667 MB / 1.295 GB, free: 26.92 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02483/2.485, allocations: 12.02 MB / 1.306 GB, free: 25.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008061/2.485, allocations: 0.543 MB / 1.307 GB, free: 25.1 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004841/2.49, allocations: 0.9642 MB / 1.308 GB, free: 25.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03854/2.529, allocations: 21.7 MB / 1.329 GB, free: 6.512 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06229/2.591, allocations: 26.24 MB / 1.355 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005788/2.592, allocations: 26.3 kB / 1.355 GB, free: 0.8594 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003835/2.596, allocations: 12 kB / 1.355 GB, free: 0.8477 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.297/2.893, allocations: 1.397 MB / 1.356 GB, free: 83.33 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1131/3.006, allocations: 84.99 MB / 1.439 GB, free: 69.55 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009251/3.015, allocations: 8.384 MB / 1.447 GB, free: 68.79 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004945/3.02, allocations: 4.964 MB / 1.452 GB, free: 66.96 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004175/3.02, allocations: 238 kB / 1.452 GB, free: 66.84 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.503e-05/3.02, allocations: 98.69 kB / 1.452 GB, free: 66.75 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=613): time 7.835e-06/3.02, allocations: 0 / 1.452 GB, free: 66.75 MB / 0.4949 GB Notification: Performance of matching and sorting (n=613): time 0.01318/3.034, allocations: 9.43 MB / 1.462 GB, free: 63.39 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.818e-05/3.034, allocations: 137 kB / 1.462 GB, free: 63.29 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00677/3.04, allocations: 5.343 MB / 1.467 GB, free: 61.28 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0004094/3.041, allocations: 29.23 kB / 1.467 GB, free: 61.25 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002395/3.043, allocations: 6.989 MB / 1.474 GB, free: 56.08 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001228/3.045, allocations: 2.048 MB / 1.476 GB, free: 54.5 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004559/3.045, allocations: 0 / 1.476 GB, free: 54.5 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004556/3.045, allocations: 0.7484 MB / 1.477 GB, free: 54 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005479/3.051, allocations: 5.151 MB / 1.482 GB, free: 52.08 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007374/3.058, allocations: 9.793 MB / 1.491 GB, free: 43.94 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01039/3.069, allocations: 7.885 MB / 1.499 GB, free: 41.11 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-05/3.069, allocations: 43.44 kB / 1.499 GB, free: 41.11 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.02034/3.089, allocations: 15.65 MB / 1.514 GB, free: 36.27 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/3.089, allocations: 3.781 kB / 1.514 GB, free: 36.27 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000151/3.089, allocations: 166.4 kB / 1.514 GB, free: 36.27 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003148/3.092, allocations: 1.481 MB / 1.516 GB, free: 35.94 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007154/3.1, allocations: 2.3 MB / 1.518 GB, free: 34.18 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/3.112, allocations: 11.15 MB / 1.529 GB, free: 24.29 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006325/3.118, allocations: 1.122 MB / 1.53 GB, free: 23.23 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007389/3.119, allocations: 0.5366 MB / 1.531 GB, free: 22.7 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1248): * Single equations (assignments): 1227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001043/3.12, allocations: 0.499 MB / 1.531 GB, free: 22.19 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008691/3.121, allocations: 0.6017 MB / 1.532 GB, free: 21.58 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01565/3.136, allocations: 11.41 MB / 1.543 GB, free: 12.14 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01103/3.148, allocations: 8.71 MB / 1.551 GB, free: 4.637 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.702e-05/3.148, allocations: 13.97 kB / 1.551 GB, free: 4.625 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.305e-05/3.148, allocations: 31.5 kB / 1.551 GB, free: 4.625 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3325/3.48, allocations: 24.1 MB / 1.575 GB, free: 70.65 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.79e-05/3.48, allocations: 6.75 kB / 1.575 GB, free: 70.65 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004105/3.484, allocations: 0.9648 MB / 1.576 GB, free: 70.65 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002773/3.487, allocations: 1.272 MB / 1.577 GB, free: 70.64 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003544/3.487, allocations: 50.11 kB / 1.577 GB, free: 70.64 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/3.5, allocations: 10.83 MB / 1.588 GB, free: 69.33 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/3.5, allocations: 10.31 kB / 1.588 GB, free: 69.33 MB / 0.495 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01938/3.52, allocations: 17.08 MB / 1.604 GB, free: 67.21 MB / 0.495 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03672/3.556, allocations: 35.74 MB / 1.639 GB, free: 64.26 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003131/3.56, allocations: 1.548 MB / 1.641 GB, free: 63.83 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009598/3.561, allocations: 13.25 kB / 1.641 GB, free: 63.83 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002951/3.563, allocations: 207.3 kB / 1.641 GB, free: 63.83 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005778/3.564, allocations: 327.8 kB / 1.641 GB, free: 63.82 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003858/3.564, allocations: 172 kB / 1.641 GB, free: 63.82 MB / 0.495 GB Notification: Performance of sort global known variables: time 0.004907/3.569, allocations: 3.92 MB / 1.645 GB, free: 63.64 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.009531/3.579, allocations: 3.796 MB / 1.649 GB, free: 63.09 MB / 0.495 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 1 (currentSensorL.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (532): * Single equations (assignments): 511 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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 {(6,77.8%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007305/3.58, allocations: 302 kB / 1.649 GB, free: 63 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.0159/3.596, allocations: 11.94 MB / 1.661 GB, free: 62.53 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/3.596, allocations: 0 / 1.661 GB, free: 62.53 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.006315/3.602, allocations: 4.957 MB / 1.666 GB, free: 60.76 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005491/3.607, allocations: 1.149 MB / 1.667 GB, free: 60.49 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04259/3.65, allocations: 25.92 MB / 1.692 GB, free: 44.44 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01254/3.663, allocations: 12.07 MB / 1.704 GB, free: 35.36 MB / 0.495 GB Notification: Performance of SimCode: time 6.51e-07/3.663, allocations: 0 / 1.704 GB, free: 35.36 MB / 0.495 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat