Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",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.0009615/0.0009616, allocations: 182.8 kB / 8.137 MB, free: 2.188 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.001099/0.001099, allocations: 100.2 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1036/0.1048, allocations: 55.83 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.3151, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08945/0.4046, allocations: 80.08 MB / 467.1 MB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.405, allocations: 90.91 kB / 467.2 MB, free: 6.594 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.01731/0.4223, allocations: 6.483 MB / 473.7 MB, free: 80 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.4224, allocations: 12 kB / 473.7 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.4225, allocations: 47.44 kB / 473.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.4229, allocations: 316.4 kB / 474 MB, free: 15.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.423, allocations: 8.562 kB / 474 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.423, allocations: 22.44 kB / 474.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004356/0.4235, allocations: 229.5 kB / 474.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005303/0.424, allocations: 305.4 kB / 474.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.424, allocations: 3.984 kB / 474.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.4241, allocations: 0 / 474.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.4241, allocations: 16.53 kB / 474.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.4264, allocations: 1.402 MB / 476 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.4268, allocations: 158.9 kB / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.4269, allocations: 80.83 kB / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.427, allocations: 0 / 476.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.427, allocations: 38.5 kB / 476.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.282e-06/0.427, allocations: 0 / 476.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007443/0.4278, allocations: 262.9 kB / 476.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.4278, allocations: 51.69 kB / 476.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002514/0.4281, allocations: 241 kB / 476.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.4281, allocations: 25.7 kB / 476.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.4282, allocations: 211.5 kB / 477.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.4283, allocations: 51.27 kB / 477.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.4283, allocations: 0 / 477.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.4284, allocations: 334.8 kB / 477.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.4285, allocations: 60 kB / 477.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.4286, allocations: 129.4 kB / 477.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.4288, allocations: 71.97 kB / 477.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4288, allocations: 4 kB / 477.7 MB, free: 11.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007281/0.4295, allocations: 345.7 kB / 478 MB, free: 11.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4295, allocations: 4 kB / 478 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4296, allocations: 4 kB / 478 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003215/0.4299, allocations: 84.45 kB / 478.1 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.4301, allocations: 43.92 kB / 478.2 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00263/0.4327, allocations: 2.898 MB / 481.1 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.433, allocations: 35.75 kB / 481.1 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.433, allocations: 16.8 kB / 481.1 MB, free: 8.152 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedback.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: 11 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.4331, allocations: 110.5 kB / 481.2 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.4332, allocations: 23.72 kB / 481.2 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.901e-05/0.4333, allocations: 25.89 kB / 481.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.4333, allocations: 12.03 kB / 481.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.4333, allocations: 3.938 kB / 481.3 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.4333, allocations: 4.844 kB / 481.3 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003435/0.4336, allocations: 310.6 kB / 481.6 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4337, allocations: 0 / 481.6 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.827e-05/0.4337, allocations: 19.92 kB / 481.6 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002128/0.434, allocations: 82.69 kB / 481.7 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.434, allocations: 0 / 481.7 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002542/0.4365, allocations: 2.893 MB / 484.6 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4366, allocations: 0 / 484.6 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006303/0.4372, allocations: 368.4 kB / 484.9 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00072/0.4379, allocations: 0.7509 MB / 485.7 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-05/0.438, allocations: 100.8 kB / 485.8 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.438, allocations: 0 / 485.8 MB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.4383, allocations: 27.98 kB / 485.8 MB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.4383, allocations: 11.98 kB / 485.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.4384, allocations: 4 kB / 485.8 MB, free: 3.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001551/0.4385, allocations: 181.2 kB / 486 MB, free: 2.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001017/0.4395, allocations: 95.59 kB / 486.1 MB, free: 2.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001266/0.4397, allocations: 103.2 kB / 486.2 MB, free: 2.711 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005426/0.4402, allocations: 379.3 kB / 486.6 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4402, allocations: 0.625 kB / 486.6 MB, free: 2.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.4405, allocations: 275.5 kB / 486.9 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.4408, allocations: 35.75 kB / 486.9 MB, free: 2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008223/0.4416, allocations: 349.4 kB / 487.2 MB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.442, allocations: 0.8117 MB / 488 MB, free: 0.793 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.442, allocations: 0 / 488 MB, free: 0.793 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat