Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.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.NonInvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp",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.001143/0.001143, allocations: 175.3 kB / 8.476 MB, free: 1.875 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.029/1.029, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 86.69 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08324/0.08414, allocations: 53 MB / 315.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.2593, allocations: 47.55 MB / 362.6 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08041/0.3397, allocations: 78.3 MB / 440.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001929/0.34, allocations: 75.95 kB / 441 MB, free: 7.512 MB / 330.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.01656/0.3565, allocations: 6.016 MB / 447 MB, free: 1.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.3566, allocations: 8 kB / 447 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.3567, allocations: 31.62 kB / 447.1 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/0.357, allocations: 270.9 kB / 447.3 MB, free: 1.137 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.357, allocations: 7.984 kB / 447.3 MB, free: 1.129 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.3571, allocations: 12 kB / 447.3 MB, free: 1.117 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003142/0.3574, allocations: 156.9 kB / 447.5 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.3577, allocations: 166.4 kB / 447.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3577, allocations: 0 / 447.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.3577, allocations: 0 / 447.7 MB, free: 0.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.3578, allocations: 4 kB / 447.7 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3593, allocations: 0.8919 MB / 448.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.3597, allocations: 150.7 kB / 448.7 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001002/0.3598, allocations: 53.42 kB / 448.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.3598, allocations: 7.984 kB / 448.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/0.36, allocations: 114.8 kB / 448.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.382e-06/0.36, allocations: 0 / 448.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005007/0.3605, allocations: 215.3 kB / 449.1 MB, free: 15.26 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.3606, allocations: 106.8 kB / 449.2 MB, free: 15.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.3608, allocations: 217.3 kB / 449.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.3608, allocations: 29.7 kB / 449.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.3609, allocations: 159.9 kB / 449.6 MB, free: 14.72 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.361, allocations: 39.36 kB / 449.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.361, allocations: 3.938 kB / 449.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3611, allocations: 338.8 kB / 450 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.3612, allocations: 48 kB / 450 MB, free: 14.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3613, allocations: 121.4 kB / 450.1 MB, free: 14.14 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.3614, allocations: 66.83 kB / 450.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3614, allocations: 0 / 450.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005241/0.362, allocations: 278.2 kB / 450.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.3623, allocations: 0.786 MB / 451.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3623, allocations: 1.031 kB / 451.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001946/0.3625, allocations: 52.81 kB / 451.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.3627, allocations: 51.97 kB / 451.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000418/0.3631, allocations: 0.5882 MB / 451.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3635, allocations: 55.78 kB / 452 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.3635, allocations: 20.05 kB / 452 MB, free: 12.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/0.3635, allocations: 4 kB / 452 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003312/0.3639, allocations: 175 kB / 452.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3639, allocations: 4.5 kB / 452.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.091e-05/0.364, allocations: 41.08 kB / 452.2 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.3642, allocations: 50.78 kB / 452.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.3654, allocations: 1.473 MB / 453.8 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002707/0.3656, allocations: 39.94 kB / 453.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.3657, allocations: 16.06 kB / 453.8 MB, free: 10.24 MB / 346.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: 9 * 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 (20): * Single equations (assignments): 18 * 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 0.0001286/0.3658, allocations: 116.8 kB / 453.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.3658, allocations: 20.75 kB / 453.9 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.3659, allocations: 25.67 kB / 454 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.3659, allocations: 4 kB / 454 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.3659, allocations: 0 / 454 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3659, allocations: 0 / 454 MB, free: 10.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.3661, allocations: 257.9 kB / 454.2 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3661, allocations: 4 kB / 454.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.3663, allocations: 32.59 kB / 454.3 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001364/0.3664, allocations: 52.83 kB / 454.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.3665, allocations: 0 / 454.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.3678, allocations: 1.549 MB / 455.9 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3679, allocations: 0 / 455.9 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004168/0.3683, allocations: 238.5 kB / 456.1 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005043/0.3688, allocations: 0.606 MB / 456.7 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/0.3689, allocations: 96.81 kB / 456.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.118e-05/0.3689, allocations: 4 kB / 456.8 MB, free: 7.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.3692, allocations: 43.97 kB / 456.8 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.866e-05/0.3693, allocations: 19.97 kB / 456.9 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.3693, allocations: 4 kB / 456.9 MB, free: 6.969 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001425/0.3694, allocations: 164.5 kB / 457 MB, free: 6.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001592/0.371, allocations: 123.6 kB / 457.2 MB, free: 6.691 MB / 346.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.0001299/0.3712, allocations: 105.2 kB / 457.3 MB, free: 6.582 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006249/0.3718, allocations: 400.6 kB / 457.6 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3718, allocations: 0 / 457.6 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.372, allocations: 181.8 kB / 457.8 MB, free: 5.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.3723, allocations: 37.17 kB / 457.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.3741, allocations: 0.6811 MB / 458.5 MB, free: 5.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003906/0.3745, allocations: 0.7715 MB / 459.3 MB, free: 4.438 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3745, allocations: 3.938 kB / 459.3 MB, free: 4.434 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmp_res.mat does not exist to compare? outputFormat=mat