Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001022/0.001022, allocations: 196.2 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.087/1.087, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009399/0.0009399, allocations: 105.8 kB / 286.4 MB, free: 12.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09497/0.09594, allocations: 56.89 MB / 343.2 MB, free: 3.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.2658, allocations: 51.45 MB / 394.7 MB, free: 33.15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3681, allocations: 104.4 MB / 499.1 MB, free: 8.559 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.3683, allocations: 83.89 kB / 499.2 MB, free: 8.477 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.127/2.495, allocations: 0.853 GB / 1.341 GB, free: 28.87 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/2.495, allocations: 10.03 kB / 1.341 GB, free: 28.87 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03091/2.526, allocations: 5.681 MB / 1.346 GB, free: 25 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02277/2.549, allocations: 12.02 MB / 1.358 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006714/2.549, allocations: 0.5463 MB / 1.358 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004114/2.553, allocations: 0.9641 MB / 1.359 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.332/2.885, allocations: 21.7 MB / 1.38 GB, free: 61.44 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04524/2.931, allocations: 25.79 MB / 1.406 GB, free: 59.47 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003906/2.931, allocations: 19.53 kB / 1.406 GB, free: 59.47 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001891/2.933, allocations: 13.81 kB / 1.406 GB, free: 59.47 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008983/2.934, allocations: 1.349 MB / 1.407 GB, free: 59.43 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1047/3.039, allocations: 85.47 MB / 1.49 GB, free: 35.72 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009733/3.048, allocations: 8.399 MB / 1.499 GB, free: 33.09 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005369/3.054, allocations: 4.96 MB / 1.504 GB, free: 31.25 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000504/3.054, allocations: 314.2 kB / 1.504 GB, free: 31.04 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/3.054, allocations: 107.6 kB / 1.504 GB, free: 30.95 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=613): time 7.734e-06/3.054, allocations: 0 / 1.504 GB, free: 30.95 MB / 0.4949 GB Notification: Performance of matching and sorting (n=613): time 0.01463/3.069, allocations: 9.427 MB / 1.513 GB, free: 27.59 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/3.069, allocations: 138.7 kB / 1.513 GB, free: 27.49 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007968/3.077, allocations: 5.344 MB / 1.519 GB, free: 25.48 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.000961/3.078, allocations: 25.7 kB / 1.519 GB, free: 25.45 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003308/3.081, allocations: 6.989 MB / 1.525 GB, free: 20.28 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002289/3.084, allocations: 2.042 MB / 1.527 GB, free: 18.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000637/3.084, allocations: 5.156 kB / 1.527 GB, free: 18.69 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.000608/3.085, allocations: 0.7488 MB / 1.528 GB, free: 18.2 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007412/3.092, allocations: 5.153 MB / 1.533 GB, free: 16.28 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/3.103, allocations: 9.788 MB / 1.543 GB, free: 8.129 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01304/3.116, allocations: 7.889 MB / 1.55 GB, free: 5.293 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002185/3.116, allocations: 46.41 kB / 1.55 GB, free: 5.293 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1365) (initialization): time 0.3713/3.488, allocations: 15.67 MB / 1.566 GB, free: 56.51 MB / 0.495 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/3.488, allocations: 3.406 kB / 1.566 GB, free: 56.51 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000229/3.488, allocations: 161.6 kB / 1.566 GB, free: 56.51 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002968/3.491, allocations: 1.484 MB / 1.567 GB, free: 56.49 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00775/3.499, allocations: 2.298 MB / 1.57 GB, free: 56.49 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01216/3.511, allocations: 11.16 MB / 1.58 GB, free: 55.17 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007187/3.518, allocations: 1.119 MB / 1.582 GB, free: 55.17 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/3.519, allocations: 0.5408 MB / 1.582 GB, free: 55.17 MB / 0.495 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.00121/3.521, allocations: 0.4969 MB / 1.583 GB, free: 55.07 MB / 0.495 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008178/3.521, allocations: 0.6031 MB / 1.583 GB, free: 55.07 MB / 0.495 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/3.537, allocations: 11.4 MB / 1.594 GB, free: 54.7 MB / 0.495 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01129/3.549, allocations: 8.709 MB / 1.603 GB, free: 54.48 MB / 0.495 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.985e-05/3.549, allocations: 18.03 kB / 1.603 GB, free: 54.48 MB / 0.495 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.925e-05/3.549, allocations: 29.06 kB / 1.603 GB, free: 54.48 MB / 0.495 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03354/3.582, allocations: 24.34 MB / 1.627 GB, free: 51.96 MB / 0.495 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/3.582, allocations: 15.06 kB / 1.627 GB, free: 51.96 MB / 0.495 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004169/3.587, allocations: 0.9625 MB / 1.628 GB, free: 51.96 MB / 0.495 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002834/3.589, allocations: 1.273 MB / 1.629 GB, free: 51.93 MB / 0.495 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004026/3.59, allocations: 47.66 kB / 1.629 GB, free: 51.93 MB / 0.495 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/3.602, allocations: 10.83 MB / 1.639 GB, free: 50.42 MB / 0.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/3.602, allocations: 12.28 kB / 1.639 GB, free: 50.42 MB / 0.495 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01886/3.621, allocations: 17.08 MB / 1.656 GB, free: 47.91 MB / 0.495 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03749/3.659, allocations: 35.75 MB / 1.691 GB, free: 38.24 MB / 0.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003449/3.662, allocations: 1.541 MB / 1.693 GB, free: 37.44 MB / 0.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001315/3.663, allocations: 10.72 kB / 1.693 GB, free: 37.44 MB / 0.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003265/3.667, allocations: 210.4 kB / 1.693 GB, free: 37.44 MB / 0.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005876/3.667, allocations: 331.8 kB / 1.693 GB, free: 37.38 MB / 0.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004546/3.668, allocations: 170.1 kB / 1.693 GB, free: 37.34 MB / 0.495 GB Notification: Performance of sort global known variables: time 0.005348/3.673, allocations: 3.913 MB / 1.697 GB, free: 35.9 MB / 0.495 GB Notification: Performance of remove unused functions: time 0.0116/3.685, allocations: 3.803 MB / 1.701 GB, free: 33.06 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.001001/3.686, allocations: 304.7 kB / 1.701 GB, free: 32.88 MB / 0.495 GB Notification: Performance of simCode: created initialization part: time 0.0141/3.7, allocations: 11.95 MB / 1.713 GB, free: 22.59 MB / 0.495 GB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/3.7, allocations: 0 / 1.713 GB, free: 22.59 MB / 0.495 GB Notification: Performance of simCode: created simulation system equations: time 0.006251/3.706, allocations: 4.955 MB / 1.718 GB, free: 18.27 MB / 0.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005669/3.712, allocations: 1.139 MB / 1.719 GB, free: 17.41 MB / 0.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2167/3.928, allocations: 26.58 MB / 1.745 GB, free: 48.04 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01437/3.943, allocations: 12.07 MB / 1.756 GB, free: 46.97 MB / 0.495 GB Notification: Performance of SimCode: time 1.272e-06/3.943, allocations: 0 / 1.756 GB, free: 46.97 MB / 0.495 GB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat does not exist to compare? outputFormat=mat