Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",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.001295/0.001295, allocations: 200.4 kB / 8.539 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.157/1.157, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000946/0.0009461, allocations: 94.94 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09961/0.1006, allocations: 56.91 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08836/0.189, allocations: 51.49 MB / 394.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2196/0.4087, allocations: 81.16 MB / 475.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001637/0.4089, allocations: 81.61 kB / 476 MB, free: 11.49 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.01559/0.4245, allocations: 6.815 MB / 482.8 MB, free: 6.344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.4245, allocations: 8 kB / 482.8 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.423e-05/0.4246, allocations: 39.53 kB / 482.8 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.4249, allocations: 293 kB / 483.1 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.4249, allocations: 8 kB / 483.1 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.4249, allocations: 12 kB / 483.1 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000296/0.4252, allocations: 182.3 kB / 483.3 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000318/0.4256, allocations: 231.1 kB / 483.5 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.4256, allocations: 4 kB / 483.5 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.4256, allocations: 3.562 kB / 483.5 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.4256, allocations: 11.92 kB / 483.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.4272, allocations: 1.143 MB / 484.7 MB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.4275, allocations: 144.6 kB / 484.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.894e-05/0.4276, allocations: 53.42 kB / 484.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.4276, allocations: 0 / 484.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001375/0.4277, allocations: 124.3 kB / 485 MB, free: 4.449 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.4278, allocations: 7.938 kB / 485 MB, free: 4.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005472/0.4283, allocations: 225.3 kB / 485.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.4283, allocations: 118 kB / 485.4 MB, free: 4.113 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.4285, allocations: 226.4 kB / 485.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.4286, allocations: 29.7 kB / 485.6 MB, free: 3.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/0.4286, allocations: 181.6 kB / 485.8 MB, free: 3.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.4287, allocations: 41.36 kB / 485.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.4287, allocations: 0 / 485.8 MB, free: 3.691 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.311e-05/0.4287, allocations: 332.5 kB / 486.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.4288, allocations: 59.03 kB / 486.2 MB, free: 3.332 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.4289, allocations: 156 kB / 486.4 MB, free: 3.172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.4291, allocations: 64.69 kB / 486.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4291, allocations: 4 kB / 486.4 MB, free: 3.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006014/0.4297, allocations: 314.4 kB / 486.7 MB, free: 2.871 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.4297, allocations: 8 kB / 486.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.4297, allocations: 0 / 486.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001731/0.4299, allocations: 51.41 kB / 486.8 MB, free: 2.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.4301, allocations: 59.77 kB / 486.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.4313, allocations: 1.466 MB / 488.3 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.4316, allocations: 59.86 kB / 488.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.4316, allocations: 19.5 kB / 488.4 MB, free: 1.215 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gain.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: 12 * 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 (23): * Single equations (assignments): 21 * 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.0001138/0.4318, allocations: 116.8 kB / 488.5 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.4318, allocations: 27.66 kB / 488.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.762e-05/0.4318, allocations: 23.45 kB / 488.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4318, allocations: 4 kB / 488.6 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.4319, allocations: 1.688 kB / 488.6 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4319, allocations: 3.984 kB / 488.6 MB, free: 1.043 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.4321, allocations: 274 kB / 488.8 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4321, allocations: 6.344 kB / 488.8 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.4322, allocations: 31.97 kB / 488.9 MB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.4323, allocations: 54.52 kB / 488.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.4324, allocations: 3.938 kB / 488.9 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001282/0.4337, allocations: 1.459 MB / 490.4 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4337, allocations: 4 kB / 490.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005294/0.4342, allocations: 255.5 kB / 490.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006739/0.4349, allocations: 0.6355 MB / 491.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.752e-05/0.435, allocations: 96.77 kB / 491.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.455e-05/0.435, allocations: 7.609 kB / 491.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002838/0.4353, allocations: 43.97 kB / 491.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.024e-05/0.4354, allocations: 15.66 kB / 491.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.4354, allocations: 4 kB / 491.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001541/0.4356, allocations: 177.4 kB / 491.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008694/0.4365, allocations: 75.75 kB / 491.7 MB, free: 14.01 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.0001575/0.4366, allocations: 103.2 kB / 491.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004637/0.4371, allocations: 278.3 kB / 492.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4371, allocations: 0 / 492.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002289/0.4373, allocations: 174.8 kB / 492.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.4376, allocations: 42.19 kB / 492.3 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007229/0.4383, allocations: 293.5 kB / 492.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000424/0.4388, allocations: 0.789 MB / 493.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.4388, allocations: 0 / 493.3 MB, free: 12.38 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat does not exist to compare? outputFormat=mat