Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.52/1.52, allocations: 221.5 MB / 230.3 MB, free: 7.562 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.0008959/0.0008959, allocations: 97.53 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.259e-05/3.27e-05, allocations: 4 kB / 337.2 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4234/0.5321, allocations: 83.26 MB / 470.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003712/0.5325, allocations: 79.95 kB / 470.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0761/0.6087, allocations: 23.74 MB / 494.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6087, allocations: 0 / 494.6 MB, free: 3.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.883e-05/0.6088, allocations: 28 kB / 494.7 MB, free: 3.598 MB / 362.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.003707/0.6126, allocations: 1.401 MB / 496.1 MB, free: 2.148 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.6126, allocations: 8.031 kB / 496.1 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/0.613, allocations: 167.4 kB / 496.2 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001539/0.6145, allocations: 0.7157 MB / 497 MB, free: 1.219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.6146, allocations: 40 kB / 497 MB, free: 1.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.6148, allocations: 75.98 kB / 497.1 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002259/0.6171, allocations: 0.8328 MB / 497.9 MB, free: 276 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002494/0.6196, allocations: 1.004 MB / 498.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/0.6197, allocations: 3.938 kB / 498.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.6198, allocations: 0 / 498.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.6198, allocations: 32 kB / 498.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.6317, allocations: 4.893 MB / 0.492 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001797/0.6335, allocations: 0.9171 MB / 0.4929 GB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009073/0.6345, allocations: 418.7 kB / 0.4933 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.233e-05/0.6346, allocations: 16.77 kB / 0.4933 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.6346, allocations: 47.28 kB / 0.4934 GB, free: 8.609 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 3.878e-06/0.6346, allocations: 0 / 0.4934 GB, free: 8.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.003657/0.6383, allocations: 1.015 MB / 0.4944 GB, free: 7.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.6384, allocations: 85.89 kB / 0.4945 GB, free: 7.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.6396, allocations: 0.6017 MB / 0.495 GB, free: 6.859 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.293e-05/0.6397, allocations: 29.7 kB / 0.4951 GB, free: 6.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005813/0.6403, allocations: 0.6074 MB / 0.4957 GB, free: 6.207 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003122/0.6406, allocations: 275.9 kB / 0.4959 GB, free: 5.934 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.137e-05/0.6407, allocations: 0 / 0.4959 GB, free: 5.934 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002465/0.6409, allocations: 406.7 kB / 0.4963 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006303/0.6416, allocations: 246.6 kB / 0.4966 GB, free: 5.285 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008164/0.6424, allocations: 473.9 kB / 0.497 GB, free: 4.723 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007258/0.6432, allocations: 312.3 kB / 0.4973 GB, free: 4.418 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.6432, allocations: 0 / 0.4973 GB, free: 4.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003025/0.6462, allocations: 1.037 MB / 0.4983 GB, free: 3.367 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.6463, allocations: 12.19 kB / 0.4983 GB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.6463, allocations: 8 kB / 0.4983 GB, free: 3.348 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006236/0.6469, allocations: 154.5 kB / 0.4985 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005621/0.6526, allocations: 0.9481 MB / 0.4994 GB, free: 2.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.6646, allocations: 8.922 MB / 0.5081 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.6661, allocations: 127 kB / 0.5082 GB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.6662, allocations: 43.98 kB / 0.5083 GB, free: 8.457 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.0003546/0.6666, allocations: 130.8 kB / 0.5084 GB, free: 8.324 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003397/0.67, allocations: 1.02 MB / 0.5094 GB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002757/0.6703, allocations: 102.8 kB / 0.5095 GB, free: 7.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/0.6706, allocations: 92.47 kB / 0.5096 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.6706, allocations: 8 kB / 0.5096 GB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.6706, allocations: 0 / 0.5096 GB, free: 7.078 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.6707, allocations: 7.984 kB / 0.5096 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00555/0.6762, allocations: 2.027 MB / 0.5116 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.6763, allocations: 0 / 0.5116 GB, free: 4.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008005/0.6771, allocations: 127.9 kB / 0.5117 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008648/0.678, allocations: 265 kB / 0.512 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.964e-05/0.678, allocations: 12 kB / 0.512 GB, free: 4.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.6891, allocations: 8.903 MB / 0.5207 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.6892, allocations: 7.938 kB / 0.5207 GB, free: 10.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004492/0.6937, allocations: 1.576 MB / 0.5222 GB, free: 9.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004884/0.6942, allocations: 179.8 kB / 0.5224 GB, free: 9.125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.6943, allocations: 3.984 kB / 0.5224 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.6955, allocations: 103.9 kB / 0.5225 GB, free: 9.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/0.6958, allocations: 64.41 kB / 0.5226 GB, free: 8.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-05/0.6958, allocations: 27.95 kB / 0.5226 GB, free: 8.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009124/0.6968, allocations: 463.2 kB / 0.523 GB, free: 8.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6968, allocations: 4 kB / 0.523 GB, free: 8.477 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001944/0.6987, allocations: 330.8 kB / 0.5233 GB, free: 8.152 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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.004589/0.7033, allocations: 2.331 MB / 0.5256 GB, free: 5.754 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.7094, allocations: 1.668 MB / 0.5272 GB, free: 4.055 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7094, allocations: 1.438 kB / 0.5272 GB, free: 4.055 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001519/0.7109, allocations: 0.9925 MB / 0.5282 GB, free: 3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.7123, allocations: 139.5 kB / 0.5283 GB, free: 2.867 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006881/0.7192, allocations: 2.037 MB / 0.5303 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008547/0.7201, allocations: 1.109 MB / 0.5314 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006153/0.7207, allocations: 94.91 kB / 0.5315 GB, free: 15.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006764/0.7214, allocations: 431.3 kB / 0.5319 GB, free: 15.12 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7214, allocations: 4 kB / 0.5319 GB, free: 15.12 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.311/1.032, allocations: 19.37 MB / 0.5508 GB, free: 124 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/1.033, allocations: 147.5 kB / 0.551 GB, free: 123.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.551/3.584, allocations: 1.688 kB / 0.551 GB, free: 123.8 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat does not exist to compare? outputFormat=mat