Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp",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.0009558/0.0009558, allocations: 178.7 kB / 8.479 MB, free: 1.832 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.049/1.049, allocations: 205.2 MB / 214.1 MB, free: 5.152 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.0008597/0.0008596, allocations: 86.25 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1496/0.1505, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06011/0.2106, allocations: 47.58 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.4082, allocations: 78.3 MB / 440.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.4084, allocations: 81.31 kB / 441 MB, free: 10.7 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01489/0.4233, allocations: 6.003 MB / 447 MB, free: 9.625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.754e-05/0.4234, allocations: 11.59 kB / 447 MB, free: 9.625 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.061e-05/0.4234, allocations: 32.31 kB / 447.1 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.4237, allocations: 268.8 kB / 447.3 MB, free: 9.371 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.4237, allocations: 7.797 kB / 447.3 MB, free: 9.367 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/0.4238, allocations: 11.41 kB / 447.4 MB, free: 9.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002555/0.424, allocations: 159.3 kB / 447.5 MB, free: 9.359 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.4243, allocations: 166.2 kB / 447.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.4243, allocations: 0 / 447.7 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.4243, allocations: 4 kB / 447.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.4243, allocations: 3.969 kB / 447.7 MB, free: 9.297 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.4256, allocations: 0.8956 MB / 448.6 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002761/0.4259, allocations: 143.3 kB / 448.7 MB, free: 8.676 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.037e-05/0.426, allocations: 53.83 kB / 448.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.426, allocations: 7.781 kB / 448.8 MB, free: 8.664 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001255/0.4261, allocations: 117.7 kB / 448.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/0.4261, allocations: 0 / 448.9 MB, free: 8.582 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004261/0.4266, allocations: 213.7 kB / 449.1 MB, free: 8.496 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/0.4266, allocations: 106.7 kB / 449.2 MB, free: 8.371 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.4267, allocations: 214.9 kB / 449.4 MB, free: 8.254 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.4268, allocations: 29.67 kB / 449.4 MB, free: 8.223 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.4268, allocations: 152.9 kB / 449.6 MB, free: 8.094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.446e-05/0.4268, allocations: 41.17 kB / 449.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.105e-05/0.4269, allocations: 0 / 449.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.957e-05/0.4269, allocations: 338.4 kB / 450 MB, free: 7.738 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.427, allocations: 51.84 kB / 450 MB, free: 7.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.397e-05/0.4271, allocations: 107.9 kB / 450.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.136e-05/0.4272, allocations: 58.58 kB / 450.2 MB, free: 7.645 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4272, allocations: 3.812 kB / 450.2 MB, free: 7.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004247/0.4276, allocations: 261.8 kB / 450.4 MB, free: 7.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.545e-05/0.4277, allocations: 0.6133 MB / 451 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.4277, allocations: 0 / 451 MB, free: 6.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.4279, allocations: 48.53 kB / 451.1 MB, free: 6.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.4281, allocations: 53.48 kB / 451.1 MB, free: 6.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002688/0.4284, allocations: 0.5849 MB / 451.7 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.4287, allocations: 54.77 kB / 451.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.4287, allocations: 7.562 kB / 451.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.009e-06/0.4287, allocations: 11.72 kB / 451.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000258/0.429, allocations: 158.8 kB / 452 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-06/0.429, allocations: 0 / 452 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.513e-05/0.4291, allocations: 34.72 kB / 452 MB, free: 6.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.4292, allocations: 58.08 kB / 452 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007733/0.43, allocations: 1.469 MB / 453.5 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.4303, allocations: 43.09 kB / 453.6 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.4303, allocations: 7.688 kB / 453.6 MB, free: 4.898 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 9.107e-05/0.4304, allocations: 117.5 kB / 453.7 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.4304, allocations: 23.28 kB / 453.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.382e-05/0.4305, allocations: 16.62 kB / 453.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4305, allocations: 3.844 kB / 453.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.4305, allocations: 0 / 453.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4305, allocations: 3.984 kB / 453.7 MB, free: 4.77 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.4307, allocations: 258.4 kB / 454 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4307, allocations: 3.938 kB / 454 MB, free: 4.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.4308, allocations: 35.22 kB / 454 MB, free: 4.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001075/0.4309, allocations: 42.88 kB / 454.1 MB, free: 4.535 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.431, allocations: 7.875 kB / 454.1 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009383/0.4319, allocations: 1.448 MB / 455.5 MB, free: 19.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4319, allocations: 3.844 kB / 455.5 MB, free: 19.25 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003525/0.4323, allocations: 237.5 kB / 455.8 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004292/0.4327, allocations: 0.6002 MB / 456.4 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.149e-05/0.4328, allocations: 112.2 kB / 456.5 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.4328, allocations: 0 / 456.5 MB, free: 18.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.4331, allocations: 39 kB / 456.5 MB, free: 18.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.4331, allocations: 20.84 kB / 456.5 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.4331, allocations: 3.844 kB / 456.5 MB, free: 18.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.000109/0.4332, allocations: 163.9 kB / 456.7 MB, free: 18.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001497/0.4348, allocations: 111.8 kB / 456.8 MB, free: 18.41 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001135/0.4349, allocations: 113.3 kB / 456.9 MB, free: 18.31 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005127/0.4354, allocations: 386.5 kB / 457.3 MB, free: 18.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4354, allocations: 0 / 457.3 MB, free: 18.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.4356, allocations: 181.1 kB / 457.5 MB, free: 18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.4358, allocations: 38.17 kB / 457.5 MB, free: 17.99 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005161/0.4364, allocations: 268.5 kB / 457.8 MB, free: 17.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.4367, allocations: 0.7771 MB / 458.5 MB, free: 17.1 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4367, allocations: 0 / 458.5 MB, free: 17.1 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat does not exist to compare? outputFormat=mat