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.001132/0.001133, allocations: 180.5 kB / 16.38 MB, free: 5.762 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.528/1.528, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 96.55 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000419/0.0004195, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1174/0.4581, allocations: 83.98 MB / 485.6 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.4584, allocations: 83.95 kB / 485.7 MB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06399/0.5224, allocations: 23.97 MB / 0.4977 GB, free: 4.332 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5225, allocations: 4 kB / 0.4977 GB, free: 4.328 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.641e-05/0.5226, allocations: 35.98 kB / 0.4977 GB, free: 4.293 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.003443/0.526, allocations: 1.52 MB / 0.4992 GB, free: 2.719 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.557e-05/0.5261, allocations: 8.031 kB / 0.4992 GB, free: 2.711 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003396/0.5264, allocations: 183.2 kB / 0.4994 GB, free: 2.523 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.5268, allocations: 162.1 kB / 0.4995 GB, free: 2.363 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001341/0.5281, allocations: 0.7351 MB / 0.5003 GB, free: 1.582 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-05/0.5282, allocations: 90.44 kB / 0.5003 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.5284, allocations: 120 kB / 0.5005 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002673/0.5311, allocations: 1.312 MB / 0.5017 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.5311, allocations: 0 / 0.5017 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.2341/0.7652, allocations: 49.27 kB / 0.5018 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.767e-05/0.7653, allocations: 29.56 kB / 0.5018 GB, free: 89.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003933/0.7692, allocations: 1.146 MB / 0.5029 GB, free: 89.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009468/0.7787, allocations: 5.11 MB / 0.5079 GB, free: 87.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.7809, allocations: 1.26 MB / 0.5092 GB, free: 87.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.343e-05/0.7809, allocations: 12.12 kB / 0.5092 GB, free: 87.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.781, allocations: 48.53 kB / 0.5092 GB, free: 87.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=79): time 3.406e-06/0.781, allocations: 0 / 0.5092 GB, free: 87.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.007382/0.7884, allocations: 3.144 MB / 0.5123 GB, free: 86.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.7885, allocations: 87.55 kB / 0.5124 GB, free: 86.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008709/0.7893, allocations: 0.7222 MB / 0.5131 GB, free: 86.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.049e-05/0.7894, allocations: 42.11 kB / 0.5131 GB, free: 86.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003146/0.7897, allocations: 0.5919 MB / 0.5137 GB, free: 86.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001762/0.7899, allocations: 277.8 kB / 0.514 GB, free: 86.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.79, allocations: 21.09 kB / 0.514 GB, free: 86.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.7901, allocations: 345.7 kB / 0.5143 GB, free: 85.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007671/0.7909, allocations: 390.6 kB / 0.5147 GB, free: 85.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008555/0.7917, allocations: 0.6155 MB / 0.5153 GB, free: 85.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008182/0.7926, allocations: 450.4 kB / 0.5157 GB, free: 85.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.7926, allocations: 7.906 kB / 0.5157 GB, free: 85.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002768/0.7953, allocations: 1.42 MB / 0.5171 GB, free: 84.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.7954, allocations: 14.19 kB / 0.5171 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.7954, allocations: 6.469 kB / 0.5171 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007357/0.7961, allocations: 229.1 kB / 0.5173 GB, free: 84.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003215/0.7994, allocations: 0.9403 MB / 0.5183 GB, free: 84.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01042/0.8098, allocations: 10.36 MB / 0.5284 GB, free: 76.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.8109, allocations: 162.2 kB / 0.5285 GB, free: 76.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.965e-05/0.811, allocations: 42.58 kB / 0.5286 GB, free: 76.12 MB / 378.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 () * Number of clocked 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.0005697/0.8116, allocations: 279.6 kB / 0.5288 GB, free: 75.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.8117, allocations: 100.3 kB / 0.5289 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.8119, allocations: 112.9 kB / 0.529 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.8119, allocations: 6.469 kB / 0.5291 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/0.8119, allocations: 3.531 kB / 0.5291 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.812, allocations: 7.422 kB / 0.5291 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004448/0.8164, allocations: 2.532 MB / 0.5315 GB, free: 74.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.8164, allocations: 0 / 0.5315 GB, free: 74.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005145/0.817, allocations: 132.8 kB / 0.5317 GB, free: 74.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.8181, allocations: 445.3 kB / 0.5321 GB, free: 73.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.183e-05/0.8182, allocations: 16 kB / 0.5321 GB, free: 73.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009407/0.8276, allocations: 10.27 MB / 0.5421 GB, free: 63.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.8277, allocations: 5.594 kB / 0.5421 GB, free: 63.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004178/0.8318, allocations: 2.076 MB / 0.5442 GB, free: 61.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.8322, allocations: 193.3 kB / 0.5444 GB, free: 61.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.8323, allocations: 18 kB / 0.5444 GB, free: 61.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007324/0.8331, allocations: 118.7 kB / 0.5445 GB, free: 61.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.8333, allocations: 66.06 kB / 0.5445 GB, free: 61.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.8333, allocations: 23.52 kB / 0.5446 GB, free: 61.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006292/0.8339, allocations: 0.544 MB / 0.5451 GB, free: 60.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8339, allocations: 4 kB / 0.5451 GB, free: 60.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001259/0.8352, allocations: 355.1 kB / 0.5454 GB, free: 60.36 MB / 378.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 () * Number of clocked 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.004126/0.8393, allocations: 2.864 MB / 0.5482 GB, free: 57.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004754/0.8441, allocations: 2.061 MB / 0.5503 GB, free: 55.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.8442, allocations: 0 / 0.5503 GB, free: 55.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.8456, allocations: 1.177 MB / 0.5514 GB, free: 54.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.8467, allocations: 183.5 kB / 0.5516 GB, free: 54.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01261/0.8594, allocations: 11.56 MB / 0.5629 GB, free: 43.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.86, allocations: 1.1 MB / 0.5639 GB, free: 42.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005269/0.8605, allocations: 106.6 kB / 0.564 GB, free: 42.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.8609, allocations: 435.8 kB / 0.5645 GB, free: 41.99 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8609, allocations: 0 / 0.5645 GB, free: 41.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.9007, allocations: 21.72 MB / 0.5857 GB, free: 20.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.9009, allocations: 229.3 kB / 0.5859 GB, free: 20.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.872/3.773, allocations: 3.75 kB / 0.5859 GB, free: 20.46 MB / 378.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