Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",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.001346/0.001346, allocations: 197.9 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008911/0.0008911, allocations: 94.81 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1013/0.1022, allocations: 56.91 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.192, allocations: 51.48 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2275/0.4196, allocations: 84 MB / 478.7 MB, free: 9.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001811/0.4198, allocations: 81.27 kB / 478.8 MB, free: 9.395 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: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.05878/0.4786, allocations: 25.2 MB / 0.4922 GB, free: 4.254 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.4786, allocations: 12 kB / 0.4922 GB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003553/0.479, allocations: 158 kB / 0.4923 GB, free: 4.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.4802, allocations: 0.733 MB / 0.4931 GB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.4803, allocations: 47.89 kB / 0.4931 GB, free: 3.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.4804, allocations: 72 kB / 0.4932 GB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001507/0.482, allocations: 0.828 MB / 0.494 GB, free: 2.879 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.4837, allocations: 1.002 MB / 0.495 GB, free: 2.137 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.4837, allocations: 4 kB / 0.495 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/0.4838, allocations: 0 / 0.495 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.4838, allocations: 32 kB / 0.495 GB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007704/0.4915, allocations: 4.93 MB / 0.4998 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4926, allocations: 0.6678 MB / 0.5005 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006303/0.4933, allocations: 435.6 kB / 0.5009 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.373e-05/0.4933, allocations: 8.656 kB / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.4934, allocations: 51.16 kB / 0.5009 GB, free: 12.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 1.914e-06/0.4934, allocations: 0 / 0.5009 GB, free: 12.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.00255/0.4959, allocations: 1.044 MB / 0.502 GB, free: 11.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.496, allocations: 85.77 kB / 0.502 GB, free: 11.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007772/0.4968, allocations: 0.6017 MB / 0.5026 GB, free: 10.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.4968, allocations: 33.64 kB / 0.5027 GB, free: 10.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.4971, allocations: 0.498 MB / 0.5031 GB, free: 9.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.4973, allocations: 264 kB / 0.5034 GB, free: 9.625 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.4974, allocations: 0 / 0.5034 GB, free: 9.625 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4976, allocations: 406.7 kB / 0.5038 GB, free: 9.219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004374/0.498, allocations: 250.6 kB / 0.504 GB, free: 8.973 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005453/0.4985, allocations: 473.9 kB / 0.5045 GB, free: 8.418 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005012/0.4991, allocations: 313.1 kB / 0.5048 GB, free: 8.117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.4991, allocations: 4 kB / 0.5048 GB, free: 8.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002019/0.5011, allocations: 1.048 MB / 0.5058 GB, free: 7.051 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.5011, allocations: 8 kB / 0.5058 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.5011, allocations: 4 kB / 0.5058 GB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004726/0.5016, allocations: 154.6 kB / 0.506 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/0.5055, allocations: 1.003 MB / 0.5069 GB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00842/0.5139, allocations: 8.987 MB / 0.5157 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007939/0.5147, allocations: 135 kB / 0.5158 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/0.5148, allocations: 36 kB / 0.5159 GB, free: 12.02 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedbackA.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: addA.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: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 2 {1 7,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002384/0.515, allocations: 132.7 kB / 0.516 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001685/0.5152, allocations: 94.88 kB / 0.5161 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.5154, allocations: 92.09 kB / 0.5162 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.5154, allocations: 8 kB / 0.5162 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.5154, allocations: 4 kB / 0.5162 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-05/0.5155, allocations: 3.984 kB / 0.5162 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.5191, allocations: 2.014 MB / 0.5182 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.5191, allocations: 4 kB / 0.5182 GB, free: 9.598 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/0.5197, allocations: 131.8 kB / 0.5183 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000589/0.5203, allocations: 261 kB / 0.5185 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.051e-05/0.5203, allocations: 0 / 0.5185 GB, free: 9.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007942/0.5283, allocations: 8.853 MB / 0.5272 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5283, allocations: 0 / 0.5272 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002877/0.5312, allocations: 1.576 MB / 0.5287 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003367/0.5346, allocations: 2.266 MB / 0.5309 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.5348, allocations: 179.8 kB / 0.5311 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.5349, allocations: 4 kB / 0.5311 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008223/0.5358, allocations: 115.9 kB / 0.5312 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.613e-05/0.5358, allocations: 36.59 kB / 0.5313 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.997e-05/0.5359, allocations: 24 kB / 0.5313 GB, free: 11.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0005699/0.5365, allocations: 459.2 kB / 0.5317 GB, free: 10.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001732/0.5382, allocations: 330.8 kB / 0.532 GB, free: 10.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (PIA.c.v,firstOrder1A.c.v,firstOrder2A.c.v,PIB.x,firstOrder1B.y,firstOrder2B.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * 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: 6 * 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: 5 {1 5,1 5,1 1,1 7,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.5384, allocations: 112.1 kB / 0.5321 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005929/0.5444, allocations: 2.17 MB / 0.5343 GB, free: 8.281 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5444, allocations: 0 / 0.5343 GB, free: 8.281 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.5454, allocations: 0.9438 MB / 0.5352 GB, free: 7.281 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007214/0.5462, allocations: 135.7 kB / 0.5353 GB, free: 7.156 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.5509, allocations: 1.944 MB / 0.5372 GB, free: 5.172 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009552/0.5519, allocations: 1.162 MB / 0.5383 GB, free: 3.98 MB / 410.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5519, allocations: 4 kB / 0.5383 GB, free: 3.977 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat does not exist to compare? outputFormat=mat