Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.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.NonInvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001075/0.001075, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.129/1.129, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008364/0.0008364, allocations: 90.72 kB / 286.3 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09702/0.09788, allocations: 56.91 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08396/0.1819, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.3893, allocations: 81.16 MB / 475.9 MB, free: 11.58 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.3895, allocations: 77.44 kB / 476 MB, free: 11.55 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.01614/0.4056, allocations: 6.828 MB / 482.8 MB, free: 6.363 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.035e-05/0.4057, allocations: 8 kB / 482.8 MB, free: 6.355 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.4057, allocations: 39.53 kB / 482.8 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.406, allocations: 289.4 kB / 483.1 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.4061, allocations: 8 kB / 483.1 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.4061, allocations: 16 kB / 483.1 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003383/0.4065, allocations: 177.1 kB / 483.3 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/0.4068, allocations: 240.4 kB / 483.5 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.4068, allocations: 4 kB / 483.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.4069, allocations: 0 / 483.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.4069, allocations: 4 kB / 483.6 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.4084, allocations: 1.138 MB / 484.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.4087, allocations: 129.2 kB / 484.8 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.909e-05/0.4088, allocations: 55.92 kB / 484.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.4088, allocations: 0 / 484.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001384/0.409, allocations: 137.6 kB / 485 MB, free: 4.477 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.409, allocations: 0 / 485 MB, free: 4.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.000552/0.4095, allocations: 224.2 kB / 485.2 MB, free: 4.285 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.4096, allocations: 114.2 kB / 485.3 MB, free: 4.152 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.4097, allocations: 234.3 kB / 485.6 MB, free: 3.961 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.4098, allocations: 25.7 kB / 485.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.721e-05/0.4098, allocations: 186.7 kB / 485.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.4099, allocations: 39.39 kB / 485.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.173e-05/0.4099, allocations: 0 / 485.8 MB, free: 3.723 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.373e-05/0.4099, allocations: 330.3 kB / 486.1 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.41, allocations: 63.09 kB / 486.2 MB, free: 3.363 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.4102, allocations: 159.4 kB / 486.4 MB, free: 3.195 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.4103, allocations: 73.86 kB / 486.4 MB, free: 3.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.4103, allocations: 0 / 486.4 MB, free: 3.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000599/0.4109, allocations: 319.6 kB / 486.7 MB, free: 2.883 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.4109, allocations: 6.25 kB / 486.7 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.4109, allocations: 4 kB / 486.8 MB, free: 2.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.4111, allocations: 60.69 kB / 486.8 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.4113, allocations: 55.94 kB / 486.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.4126, allocations: 1.585 MB / 488.4 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003352/0.4129, allocations: 55.88 kB / 488.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.413, allocations: 12.16 kB / 488.5 MB, free: 1.137 MB / 346.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.0001091/0.4131, allocations: 124.8 kB / 488.6 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.4131, allocations: 23.66 kB / 488.7 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.4132, allocations: 21.59 kB / 488.7 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.4132, allocations: 7.984 kB / 488.7 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.4132, allocations: 0 / 488.7 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.4132, allocations: 4 kB / 488.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.4134, allocations: 279.7 kB / 489 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.4134, allocations: 0 / 489 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.4135, allocations: 37.16 kB / 489 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.4137, allocations: 48.25 kB / 489 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4137, allocations: 0 / 489 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.4151, allocations: 1.579 MB / 490.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4151, allocations: 0 / 490.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005241/0.4156, allocations: 257.4 kB / 490.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006264/0.4163, allocations: 0.6402 MB / 491.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.677e-05/0.4163, allocations: 100.1 kB / 491.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.398e-05/0.4164, allocations: 1.625 kB / 491.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.4167, allocations: 51.28 kB / 491.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/0.4167, allocations: 18.56 kB / 491.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.4168, allocations: 4 kB / 491.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001503/0.4169, allocations: 177.7 kB / 491.9 MB, free: 13.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009478/0.4179, allocations: 75.84 kB / 491.9 MB, free: 13.82 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.0001554/0.418, allocations: 105.3 kB / 492 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004819/0.4185, allocations: 283.5 kB / 492.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4185, allocations: 0 / 492.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.4188, allocations: 180.5 kB / 492.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002753/0.4191, allocations: 42.23 kB / 492.5 MB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.4219, allocations: 0.854 MB / 493.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.4224, allocations: 0.7808 MB / 494.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4224, allocations: 7.938 kB / 494.2 MB, free: 11.63 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_NonInvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat does not exist to compare? outputFormat=mat