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.001097/0.001097, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.0009749/0.0009749, allocations: 98.08 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.575e-05/2.579e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09123, allocations: 50.42 MB / 394.4 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2872/0.3784, allocations: 83.92 MB / 478.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.3787, allocations: 75.95 kB / 478.4 MB, free: 3.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06093/0.4397, allocations: 24 MB / 0.4906 GB, free: 11.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4397, allocations: 4 kB / 0.4906 GB, free: 11.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.054e-05/0.4398, allocations: 32 kB / 0.4906 GB, free: 11.37 MB / 378.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.002537/0.4423, allocations: 1.401 MB / 0.492 GB, free: 9.918 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.4424, allocations: 8.031 kB / 0.492 GB, free: 9.91 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002191/0.4426, allocations: 191.1 kB / 0.4922 GB, free: 9.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002491/0.4429, allocations: 158.1 kB / 0.4923 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.4439, allocations: 0.7274 MB / 0.493 GB, free: 8.785 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.605e-05/0.444, allocations: 90.45 kB / 0.4931 GB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.4442, allocations: 120 kB / 0.4932 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.446, allocations: 1.184 MB / 0.4944 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.4461, allocations: 0 / 0.4944 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/0.4462, allocations: 52 kB / 0.4944 GB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.472e-05/0.4462, allocations: 32 kB / 0.4945 GB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.4477, allocations: 0.9034 MB / 0.4954 GB, free: 6.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007679/0.4554, allocations: 5.104 MB / 0.5003 GB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4567, allocations: 0.9659 MB / 0.5013 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006615/0.4574, allocations: 438.6 kB / 0.5017 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.735e-05/0.4574, allocations: 16.92 kB / 0.5017 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.4575, allocations: 43.3 kB / 0.5018 GB, free: 15.48 MB / 394.7 MB Notification: Performance of pre-optimization done (n=79): time 5.03e-06/0.4575, allocations: 4 kB / 0.5018 GB, free: 15.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=79): time 0.002693/0.4602, allocations: 1.078 MB / 0.5028 GB, free: 14.38 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.4603, allocations: 85.89 kB / 0.5029 GB, free: 14.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000883/0.4611, allocations: 0.7037 MB / 0.5036 GB, free: 13.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.795e-05/0.4612, allocations: 45.64 kB / 0.5036 GB, free: 13.51 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.4616, allocations: 0.5959 MB / 0.5042 GB, free: 12.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.4618, allocations: 275.9 kB / 0.5045 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.776e-05/0.4619, allocations: 20 kB / 0.5045 GB, free: 12.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.462, allocations: 353.9 kB / 0.5048 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000449/0.4624, allocations: 270.6 kB / 0.5051 GB, free: 11.99 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005899/0.463, allocations: 496.6 kB / 0.5056 GB, free: 11.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.4636, allocations: 339.3 kB / 0.5059 GB, free: 11.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.4636, allocations: 4 kB / 0.5059 GB, free: 11.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002054/0.4656, allocations: 1.15 MB / 0.507 GB, free: 9.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.4657, allocations: 8 kB / 0.507 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.4657, allocations: 8 kB / 0.507 GB, free: 9.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004546/0.4662, allocations: 162.6 kB / 0.5072 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003838/0.47, allocations: 0.9365 MB / 0.5081 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/0.4789, allocations: 9.342 MB / 0.5172 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.48, allocations: 162.9 kB / 0.5174 GB, free: 14.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-05/0.48, allocations: 36 kB / 0.5174 GB, free: 14.46 MB / 410.7 MB 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.0002082/0.4803, allocations: 168.6 kB / 0.5176 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.4804, allocations: 102.8 kB / 0.5177 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002446/0.4807, allocations: 108.9 kB / 0.5178 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.4807, allocations: 8 kB / 0.5178 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.4807, allocations: 0 / 0.5178 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.4807, allocations: 3.984 kB / 0.5178 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/0.4847, allocations: 2.237 MB / 0.52 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4847, allocations: 4 kB / 0.52 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/0.4853, allocations: 127.9 kB / 0.5201 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006294/0.4859, allocations: 257 kB / 0.5203 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.399e-05/0.486, allocations: 23.98 kB / 0.5204 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007942/0.494, allocations: 9.241 MB / 0.5294 GB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.494, allocations: 3.984 kB / 0.5294 GB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/0.4972, allocations: 1.646 MB / 0.531 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.4975, allocations: 191.8 kB / 0.5312 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.4977, allocations: 16 kB / 0.5312 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008181/0.4985, allocations: 119.9 kB / 0.5313 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.4986, allocations: 64.42 kB / 0.5314 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.4987, allocations: 23.98 kB / 0.5314 GB, free: 15.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006747/0.4994, allocations: 0.5343 MB / 0.5319 GB, free: 14.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4994, allocations: 4 kB / 0.5319 GB, free: 14.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001151/0.5005, allocations: 359 kB / 0.5323 GB, free: 14.26 MB / 426.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.003436/0.504, allocations: 2.432 MB / 0.5346 GB, free: 11.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004991/0.509, allocations: 1.811 MB / 0.5364 GB, free: 9.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.509, allocations: 0 / 0.5364 GB, free: 9.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/0.5103, allocations: 1.054 MB / 0.5374 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.5114, allocations: 184.3 kB / 0.5376 GB, free: 8.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004982/0.5164, allocations: 2.115 MB / 0.5397 GB, free: 6.426 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000616/0.517, allocations: 1.097 MB / 0.5407 GB, free: 5.305 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004602/0.5175, allocations: 103.6 kB / 0.5408 GB, free: 5.199 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005063/0.518, allocations: 435.3 kB / 0.5413 GB, free: 4.773 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/0.518, allocations: 0 / 0.5413 GB, free: 4.773 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2314/0.7495, allocations: 21.69 MB / 0.5624 GB, free: 120 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.7496, allocations: 194.1 kB / 0.5626 GB, free: 119.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.49/3.239, allocations: 0 / 0.5626 GB, free: 119.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