Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",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.0009715/0.0009715, allocations: 183.4 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.129/1.129, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009342/0.0009341, allocations: 96.28 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09483/0.09579, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.282, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08055/0.3626, allocations: 80.38 MB / 467.4 MB, free: 6.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.3628, allocations: 76.48 kB / 467.5 MB, free: 6.34 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.01786/0.3807, allocations: 6.814 MB / 474.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.3807, allocations: 8 kB / 474.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/0.3808, allocations: 39.53 kB / 474.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.3812, allocations: 283 kB / 474.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3812, allocations: 8 kB / 474.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.3812, allocations: 16.84 kB / 474.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003249/0.3816, allocations: 180.9 kB / 474.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.3819, allocations: 241.8 kB / 475 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.382, allocations: 0 / 475 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.382, allocations: 0 / 475 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.382, allocations: 8 kB / 475.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.3838, allocations: 1.14 MB / 476.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.3841, allocations: 134.7 kB / 476.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3842, allocations: 56.8 kB / 476.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.3842, allocations: 5.969 kB / 476.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.3844, allocations: 122 kB / 476.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.3844, allocations: 0 / 476.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005831/0.385, allocations: 234.1 kB / 476.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.385, allocations: 106.8 kB / 476.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.3853, allocations: 233 kB / 477.1 MB, free: 12.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3853, allocations: 29.7 kB / 477.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.465e-05/0.3854, allocations: 183.5 kB / 477.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.3855, allocations: 39.45 kB / 477.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.3855, allocations: 3.938 kB / 477.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.211e-05/0.3856, allocations: 330.8 kB / 477.6 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3857, allocations: 60.23 kB / 477.7 MB, free: 11.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.3858, allocations: 153.1 kB / 477.8 MB, free: 11.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.386, allocations: 77.03 kB / 477.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.386, allocations: 0 / 477.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006632/0.3866, allocations: 325.5 kB / 478.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.3867, allocations: 4 kB / 478.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3867, allocations: 4 kB / 478.2 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.3869, allocations: 56.86 kB / 478.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.3872, allocations: 55.91 kB / 478.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.3887, allocations: 1.585 MB / 479.9 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.3891, allocations: 56.62 kB / 480 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/0.3891, allocations: 12.48 kB / 480 MB, free: 9.383 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: buffer.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: 13 * 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 (24): * Single equations (assignments): 22 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.3892, allocations: 128.8 kB / 480.1 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.3893, allocations: 23.72 kB / 480.2 MB, free: 9.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.568e-05/0.3893, allocations: 21.77 kB / 480.2 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3893, allocations: 1.25 kB / 480.2 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3893, allocations: 4.812 kB / 480.2 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3894, allocations: 3.938 kB / 480.2 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.3896, allocations: 277.9 kB / 480.5 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.3896, allocations: 0 / 480.5 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.3898, allocations: 39.97 kB / 480.5 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/0.3899, allocations: 48.91 kB / 480.5 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3899, allocations: 7.984 kB / 480.6 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.3914, allocations: 1.568 MB / 482.1 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3914, allocations: 0 / 482.1 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005229/0.392, allocations: 263.1 kB / 482.4 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006204/0.3926, allocations: 0.6274 MB / 483 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.3927, allocations: 108.8 kB / 483.1 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.3927, allocations: 4 kB / 483.1 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.393, allocations: 39.97 kB / 483.2 MB, free: 6.008 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.3931, allocations: 19.97 kB / 483.2 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.3931, allocations: 0 / 483.2 MB, free: 5.988 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001514/0.3933, allocations: 185.2 kB / 483.4 MB, free: 5.809 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009437/0.3942, allocations: 67.84 kB / 483.4 MB, free: 5.742 MB / 362.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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001441/0.3944, allocations: 107.2 kB / 483.5 MB, free: 5.625 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004719/0.3948, allocations: 288.5 kB / 483.8 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3949, allocations: 0 / 483.8 MB, free: 5.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000217/0.3951, allocations: 173.6 kB / 484 MB, free: 5.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.3954, allocations: 44.14 kB / 484 MB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.3981, allocations: 0.8592 MB / 484.9 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000321/0.3985, allocations: 0.7935 MB / 485.7 MB, free: 3.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3985, allocations: 0 / 485.7 MB, free: 3.41 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat does not exist to compare? outputFormat=mat