Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",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.001484/0.001484, allocations: 182.8 kB / 8.135 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.145/1.145, 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.000924/0.000924, allocations: 97.58 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09957/0.1005, allocations: 55.83 MB / 336.6 MB, free: 9.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.3089, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08328/0.3923, allocations: 78.3 MB / 465.3 MB, free: 8.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3925, allocations: 87.83 kB / 465.4 MB, free: 8.387 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.01214/0.4047, allocations: 4.729 MB / 470.1 MB, free: 3.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.4047, allocations: 12 kB / 470.1 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.409e-05/0.4048, allocations: 31.62 kB / 470.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.4051, allocations: 260.1 kB / 470.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.4051, allocations: 8 kB / 470.4 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/0.4051, allocations: 15.91 kB / 470.5 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002788/0.4054, allocations: 157 kB / 470.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.4058, allocations: 217.8 kB / 470.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.4058, allocations: 4 kB / 470.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.4058, allocations: 3.938 kB / 470.8 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.4058, allocations: 4 kB / 470.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.4074, allocations: 0.9644 MB / 471.8 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.4076, allocations: 93.7 kB / 471.9 MB, free: 1.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000312/0.4079, allocations: 140.8 kB / 472 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/0.408, allocations: 9 kB / 472 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.408, allocations: 46.55 kB / 472.1 MB, free: 1.547 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.408, allocations: 0 / 472.1 MB, free: 1.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006154/0.4086, allocations: 222.4 kB / 472.3 MB, free: 1.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.4087, allocations: 55.41 kB / 472.4 MB, free: 1.254 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.4089, allocations: 189.8 kB / 472.5 MB, free: 1.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.4089, allocations: 25.7 kB / 472.6 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.409, allocations: 159.8 kB / 472.7 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.432e-05/0.409, allocations: 63.09 kB / 472.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-06/0.4091, allocations: 0 / 472.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.4092, allocations: 326.8 kB / 473.1 MB, free: 488 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.4093, allocations: 49.97 kB / 473.1 MB, free: 440 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.4094, allocations: 107 kB / 473.3 MB, free: 304 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.4095, allocations: 56.91 kB / 473.3 MB, free: 248 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4095, allocations: 0 / 473.3 MB, free: 248 kB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006319/0.4102, allocations: 295.1 kB / 473.6 MB, free: 15.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.4102, allocations: 4 kB / 473.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4102, allocations: 0 / 473.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/0.4104, allocations: 61.58 kB / 473.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.4106, allocations: 55.91 kB / 473.7 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.4124, allocations: 1.604 MB / 475.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/0.4126, allocations: 23.83 kB / 475.3 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.4126, allocations: 8 kB / 475.4 MB, free: 14.08 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.4128, allocations: 116.9 kB / 475.5 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.4128, allocations: 15.81 kB / 475.5 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.648e-05/0.4129, allocations: 29.58 kB / 475.5 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.4129, allocations: 4 kB / 475.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.4129, allocations: 3.906 kB / 475.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.4129, allocations: 0 / 475.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008646/0.4138, allocations: 0.566 MB / 476.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4138, allocations: 0.5625 kB / 476.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.4139, allocations: 31.92 kB / 476.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001462/0.4141, allocations: 53.83 kB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.4141, allocations: 3.906 kB / 476.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.4162, allocations: 1.736 MB / 477.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.4162, allocations: 3.938 kB / 477.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006213/0.4169, allocations: 386 kB / 478.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007949/0.4177, allocations: 0.8121 MB / 479.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.4177, allocations: 105 kB / 479.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.4178, allocations: 0 / 479.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.418, allocations: 24.05 kB / 479.2 MB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.418, allocations: 11.89 kB / 479.2 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.418, allocations: 7.938 kB / 479.2 MB, free: 9.965 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001194/0.4182, allocations: 144.4 kB / 479.4 MB, free: 9.824 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009839/0.4192, allocations: 67.84 kB / 479.5 MB, free: 9.758 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (c.v,l.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001504/0.4193, allocations: 103.2 kB / 479.6 MB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003895/0.4197, allocations: 245.6 kB / 479.8 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4197, allocations: 0 / 479.8 MB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005047/0.4202, allocations: 258 kB / 480 MB, free: 9.133 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.4205, allocations: 29.81 kB / 480.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.4226, allocations: 0.7484 MB / 480.8 MB, free: 8.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003189/0.423, allocations: 0.7826 MB / 481.6 MB, free: 7.527 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.423, allocations: 0 / 481.6 MB, free: 7.527 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator_fmu --startTime=0 --stopTime=0.01 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.mat does not exist to compare? outputFormat=mat