Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",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.001246/0.001246, allocations: 206.7 kB / 8.544 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009646/0.0009646, allocations: 89.72 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09501/0.09601, allocations: 56.91 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.1789, allocations: 51.48 MB / 394.7 MB, free: 5.055 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2151/0.394, allocations: 78.41 MB / 473.1 MB, free: 13.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001691/0.3942, allocations: 68.89 kB / 473.2 MB, free: 13.26 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.009605/0.4038, allocations: 3.475 MB / 476.7 MB, free: 11.19 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.4039, allocations: 8 kB / 476.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004022/0.4043, allocations: 58.55 kB / 476.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.4045, allocations: 189.7 kB / 476.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.4045, allocations: 4 kB / 476.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.4045, allocations: 8 kB / 476.9 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001649/0.4047, allocations: 60.7 kB / 477 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.4049, allocations: 128.7 kB / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.4049, allocations: 7.328 kB / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.405, allocations: 0 / 477.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.405, allocations: 4 kB / 477.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007164/0.4057, allocations: 480.1 kB / 477.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.4058, allocations: 58.11 kB / 477.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.4059, allocations: 62.25 kB / 477.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.406, allocations: 7.953 kB / 477.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.487e-05/0.406, allocations: 34.56 kB / 477.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.406, allocations: 0 / 477.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002028/0.4062, allocations: 78.67 kB / 477.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.4062, allocations: 102.8 kB / 477.9 MB, free: 10.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.4063, allocations: 136.8 kB / 478.1 MB, free: 9.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.4064, allocations: 29.7 kB / 478.1 MB, free: 9.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.272e-05/0.4064, allocations: 114.4 kB / 478.2 MB, free: 9.809 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.4064, allocations: 31.02 kB / 478.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-06/0.4064, allocations: 0 / 478.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.949e-05/0.4065, allocations: 322.2 kB / 478.6 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.626e-05/0.4065, allocations: 19.56 kB / 478.6 MB, free: 9.453 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.286e-05/0.4066, allocations: 71.53 kB / 478.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.651e-05/0.4067, allocations: 31.08 kB / 478.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4067, allocations: 0 / 478.7 MB, free: 9.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001746/0.4069, allocations: 111.3 kB / 478.8 MB, free: 9.281 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.4069, allocations: 4 kB / 478.8 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.4069, allocations: 4 kB / 478.8 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4069, allocations: 0 / 478.8 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.4075, allocations: 84.91 kB / 478.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009959/0.4085, allocations: 1.333 MB / 480.2 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.4087, allocations: 27.97 kB / 480.2 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.4088, allocations: 4 kB / 480.2 MB, free: 7.805 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 6.5e-05/0.4088, allocations: 112.7 kB / 480.3 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.4089, allocations: 11.81 kB / 480.4 MB, free: 7.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.4092, allocations: 126.9 kB / 480.5 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4092, allocations: 4 kB / 480.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.4092, allocations: 0 / 480.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.4092, allocations: 0 / 480.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004686/0.4097, allocations: 399.2 kB / 480.9 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4097, allocations: 0 / 480.9 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.4098, allocations: 34.83 kB / 480.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002326/0.4101, allocations: 35.36 kB / 480.9 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.4101, allocations: 0 / 480.9 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007384/0.4109, allocations: 1.244 MB / 482.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4109, allocations: 0 / 482.2 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003366/0.4112, allocations: 265.4 kB / 482.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003992/0.4116, allocations: 0.6641 MB / 483.1 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.856e-05/0.4117, allocations: 92.58 kB / 483.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.4117, allocations: 0 / 483.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.4119, allocations: 21.11 kB / 483.2 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.4119, allocations: 8.344 kB / 483.2 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/0.4119, allocations: 3 kB / 483.2 MB, free: 4.898 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.657e-05/0.412, allocations: 118.2 kB / 483.3 MB, free: 4.797 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008713/0.4129, allocations: 40.45 kB / 483.4 MB, free: 4.758 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001222/0.413, allocations: 105.2 kB / 483.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008752/0.4139, allocations: 153.2 kB / 483.6 MB, free: 4.543 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4139, allocations: 4 kB / 483.6 MB, free: 4.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.4141, allocations: 137.8 kB / 483.8 MB, free: 4.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.4143, allocations: 12.11 kB / 483.8 MB, free: 4.402 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.4156, allocations: 419 kB / 484.2 MB, free: 4.047 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.4157, allocations: 0.7359 MB / 484.9 MB, free: 3.305 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4157, allocations: 0 / 484.9 MB, free: 3.305 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat does not exist to compare? outputFormat=mat