Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.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.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Adder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder",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.0009997/0.0009997, allocations: 175.7 kB / 8.134 MB, free: 2.191 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.159/1.159, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009323/0.0009326, allocations: 92.86 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1027/0.1037, allocations: 55.83 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.3053, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08751/0.3928, allocations: 80.12 MB / 467.1 MB, free: 6.652 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.3931, allocations: 79.94 kB / 467.2 MB, free: 6.574 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.01487/0.408, allocations: 5.896 MB / 473.1 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.408, allocations: 19.94 kB / 473.1 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.112e-05/0.4081, allocations: 39.53 kB / 473.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003625/0.4085, allocations: 299.1 kB / 473.5 MB, free: 272 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.4085, allocations: 12 kB / 473.5 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.4086, allocations: 16 kB / 473.5 MB, free: 244 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003733/0.4089, allocations: 202.2 kB / 473.7 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.4094, allocations: 267.8 kB / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4094, allocations: 0 / 473.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.4094, allocations: 11.98 kB / 474 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4095, allocations: 11.94 kB / 474 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.4114, allocations: 1.224 MB / 475.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.4117, allocations: 147.7 kB / 475.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000165/0.4119, allocations: 84.89 kB / 475.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.4119, allocations: 0 / 475.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.4119, allocations: 43.3 kB / 475.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.4119, allocations: 0 / 475.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006487/0.4126, allocations: 242.5 kB / 475.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.4126, allocations: 57.31 kB / 475.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.4129, allocations: 221 kB / 476 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.4129, allocations: 29.64 kB / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.413, allocations: 207.4 kB / 476.2 MB, free: 13.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.858e-05/0.413, allocations: 51.19 kB / 476.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-06/0.4131, allocations: 0 / 476.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.4132, allocations: 334.8 kB / 476.6 MB, free: 13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.385e-05/0.4133, allocations: 51.98 kB / 476.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.4134, allocations: 130.3 kB / 476.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.4135, allocations: 71.2 kB / 476.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4135, allocations: 4 kB / 476.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006822/0.4142, allocations: 322.1 kB / 477.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.4143, allocations: 4 kB / 477.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.4143, allocations: 4 kB / 477.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.4145, allocations: 68.83 kB / 477.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.4147, allocations: 47.97 kB / 477.3 MB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.4165, allocations: 1.714 MB / 479 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.4167, allocations: 27.75 kB / 479 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.4168, allocations: 23.98 kB / 479 MB, free: 10.39 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: add.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.4169, allocations: 108.2 kB / 479.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.417, allocations: 23.72 kB / 479.2 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.417, allocations: 29.67 kB / 479.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.417, allocations: 0.9375 kB / 479.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.417, allocations: 3.938 kB / 479.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.4171, allocations: 0 / 479.2 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/0.418, allocations: 0.6207 MB / 479.8 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.418, allocations: 3.984 kB / 479.8 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.976e-05/0.4181, allocations: 20.67 kB / 479.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001689/0.4182, allocations: 72.83 kB / 479.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.4183, allocations: 0 / 479.9 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001675/0.4199, allocations: 1.7 MB / 481.6 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.42, allocations: 4.062 kB / 481.6 MB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005638/0.4205, allocations: 355.2 kB / 482 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006404/0.4212, allocations: 0.7191 MB / 482.7 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.4213, allocations: 96.91 kB / 482.8 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.4213, allocations: 4.406 kB / 482.8 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.4215, allocations: 27.98 kB / 482.8 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.4216, allocations: 7.984 kB / 482.8 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.4216, allocations: 4.562 kB / 482.8 MB, free: 6.379 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001515/0.4217, allocations: 173.2 kB / 483 MB, free: 6.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009952/0.4227, allocations: 83.69 kB / 483.1 MB, free: 6.129 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001427/0.4229, allocations: 103.2 kB / 483.2 MB, free: 6.016 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004223/0.4233, allocations: 254 kB / 483.4 MB, free: 5.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4233, allocations: 7.938 kB / 483.4 MB, free: 5.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.4235, allocations: 166.5 kB / 483.6 MB, free: 5.574 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.4238, allocations: 32.48 kB / 483.6 MB, free: 5.543 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00089/0.4247, allocations: 366.9 kB / 484 MB, free: 5.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.4251, allocations: 0.7984 MB / 484.8 MB, free: 4.332 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4251, allocations: 0 / 484.8 MB, free: 4.332 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Adder.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Adder_res.mat does not exist to compare? outputFormat=mat