Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator",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 3.2.3+maint.om/package.mo): time 0.0009304/0.0009304, allocations: 175 kB / 8.477 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.056/1.056, allocations: 205.2 MB / 214.1 MB, free: 5.43 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009036/0.0009036, allocations: 98.22 kB / 262.1 MB, free: 5.5 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1472/0.1482, allocations: 52.98 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06129/0.2095, allocations: 47.57 MB / 362.6 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/0.411, allocations: 77.03 MB / 439.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.4112, allocations: 75.77 kB / 439.7 MB, free: 10.92 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.01337/0.4246, allocations: 5.455 MB / 445.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.4246, allocations: 8.594 kB / 445.2 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/0.4248, allocations: 39.89 kB / 445.2 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.4251, allocations: 283.5 kB / 445.5 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.4251, allocations: 7.812 kB / 445.5 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.4252, allocations: 15.56 kB / 445.5 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003428/0.4255, allocations: 216.9 kB / 445.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003396/0.4259, allocations: 222.2 kB / 446 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.4259, allocations: 0 / 446 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.4259, allocations: 1.969 kB / 446 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.4259, allocations: 7.688 kB / 446 MB, free: 9.832 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.4277, allocations: 1.16 MB / 447.1 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.4282, allocations: 200.2 kB / 447.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.4284, allocations: 148.3 kB / 447.5 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.4285, allocations: 0 / 447.5 MB, free: 9.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.4285, allocations: 38.44 kB / 447.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.282e-06/0.4285, allocations: 0 / 447.5 MB, free: 9.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007484/0.4293, allocations: 321 kB / 447.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.611e-05/0.4293, allocations: 51.41 kB / 447.9 MB, free: 8.977 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.4295, allocations: 208 kB / 448.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.4295, allocations: 25.7 kB / 448.1 MB, free: 8.836 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.4296, allocations: 190.4 kB / 448.3 MB, free: 8.676 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.4296, allocations: 76.31 kB / 448.4 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.4296, allocations: 0 / 448.4 MB, free: 8.621 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.992e-05/0.4297, allocations: 333.6 kB / 448.7 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.906e-05/0.4298, allocations: 58.44 kB / 448.8 MB, free: 8.297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.4299, allocations: 151 kB / 448.9 MB, free: 8.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.43, allocations: 78.27 kB / 449 MB, free: 8.164 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.43, allocations: 0 / 449 MB, free: 8.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007279/0.4307, allocations: 401.5 kB / 449.4 MB, free: 8.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.4309, allocations: 1.133 MB / 450.5 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.431, allocations: 0 / 450.5 MB, free: 6.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.4312, allocations: 90.14 kB / 450.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.4314, allocations: 58.23 kB / 450.7 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009036/0.4323, allocations: 1.257 MB / 451.9 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.4326, allocations: 42.95 kB / 452 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.4326, allocations: 19.06 kB / 452 MB, free: 5.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.743e-06/0.4326, allocations: 7.875 kB / 452 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003048/0.433, allocations: 211.1 kB / 452.2 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.433, allocations: 3.906 kB / 452.2 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.64e-05/0.4331, allocations: 47.89 kB / 452.2 MB, free: 5.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001897/0.4333, allocations: 61.88 kB / 452.3 MB, free: 5.574 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.4346, allocations: 2.571 MB / 454.9 MB, free: 19.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.4348, allocations: 19.66 kB / 454.9 MB, free: 19.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.4348, allocations: 10.22 kB / 454.9 MB, free: 19.01 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp2.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * 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: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.435, allocations: 121.2 kB / 455 MB, free: 18.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.102e-05/0.435, allocations: 26.25 kB / 455 MB, free: 18.88 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.4351, allocations: 23.41 kB / 455.1 MB, free: 18.87 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.4351, allocations: 7.75 kB / 455.1 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.4351, allocations: 64 / 455.1 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4351, allocations: 4 kB / 455.1 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009801/0.4361, allocations: 0.6751 MB / 455.7 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.4361, allocations: 0 / 455.7 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.4362, allocations: 26.83 kB / 455.8 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.4364, allocations: 82.08 kB / 455.9 MB, free: 18.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.4365, allocations: 0 / 455.9 MB, free: 18.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002804/0.4393, allocations: 3.031 MB / 458.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.4393, allocations: 3.906 kB / 458.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007506/0.44, allocations: 489 kB / 459.4 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009537/0.441, allocations: 0.9289 MB / 460.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.421e-05/0.4411, allocations: 96.52 kB / 460.4 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.4411, allocations: 3.906 kB / 460.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.4414, allocations: 34.94 kB / 460.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.4414, allocations: 7.641 kB / 460.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.4414, allocations: 11.25 kB / 460.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001254/0.4416, allocations: 165.8 kB / 460.6 MB, free: 14.74 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001696/0.4433, allocations: 137.4 kB / 460.7 MB, free: 14.72 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 0 * Non-linear torn systems: 2 {1 5,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001305/0.4434, allocations: 102.3 kB / 460.8 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009633/0.4444, allocations: 0.5744 MB / 461.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4444, allocations: 4.062 kB / 461.4 MB, free: 14.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005742/0.445, allocations: 374.6 kB / 461.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.4453, allocations: 31.72 kB / 461.8 MB, free: 14.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007535/0.446, allocations: 400.3 kB / 462.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.4464, allocations: 0.7997 MB / 463 MB, free: 13.13 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4464, allocations: 0 / 463 MB, free: 13.13 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SignalGenerator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator_res.mat does not exist to compare? outputFormat=mat