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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000987/0.000987, allocations: 88.59 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009239/0.0009241, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.564/1.564, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003876, allocations: 7 kB / 300.9 MB, free: 6.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1524, allocations: 50.43 MB / 351.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.008456/0.1609, allocations: 6.869 MB / 358.2 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004837/0.1658, allocations: 1.816 MB / 360 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002107/0.168, allocations: 27.94 kB / 360.1 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.1692, allocations: 174.6 kB / 360.2 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002472/0.1716, allocations: 353.1 kB / 360.6 MB, free: 2.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.1731, allocations: 311.5 kB / 360.9 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002855/0.176, allocations: 1.622 MB / 362.5 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009452/0.177, allocations: 465.6 kB / 363 MB, free: 56 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009666/0.1779, allocations: 0.4902 MB / 363.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006662/0.1786, allocations: 0.5871 MB / 364 MB, free: 14.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.1788, allocations: 83.94 kB / 364.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.1789, allocations: 72 kB / 364.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002058/0.1792, allocations: 230.9 kB / 364.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002683/0.1794, allocations: 281 kB / 364.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00134/0.1808, allocations: 1.593 MB / 366.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1808, allocations: 0 / 366.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1808, allocations: 0 / 366.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.349e-05/0.1808, allocations: 0 / 366.3 MB, free: 12.71 MB / 302.1 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.002948/0.1838, allocations: 1.598 MB / 367.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1839, allocations: 11.97 kB / 367.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002318/0.1841, allocations: 181.8 kB / 368.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002536/0.1844, allocations: 166.2 kB / 368.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1855, allocations: 0.7054 MB / 368.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-05/0.1856, allocations: 94.44 kB / 369 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.1857, allocations: 120 kB / 369.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.1882, allocations: 1.328 MB / 370.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.1883, allocations: 0 / 370.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.1884, allocations: 52 kB / 370.5 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.903e-05/0.1884, allocations: 32 kB / 370.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002654/0.1911, allocations: 1.153 MB / 371.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008764/0.1999, allocations: 5.054 MB / 376.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.2023, allocations: 1.246 MB / 378 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.2036, allocations: 0.5413 MB / 378.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.2037, allocations: 20.55 kB / 378.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.2038, allocations: 51.17 kB / 378.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.036e-06/0.2038, allocations: 0 / 378.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.008758/0.2125, allocations: 3.147 MB / 381.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.2126, allocations: 85.77 kB / 381.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.2141, allocations: 0.8057 MB / 382.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001326/0.2143, allocations: 41.7 kB / 382.7 MB, free: 11.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.2148, allocations: 0.5959 MB / 383.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.2151, allocations: 280 kB / 383.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.734e-05/0.2152, allocations: 20 kB / 383.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.2153, allocations: 345.9 kB / 383.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009221/0.2163, allocations: 381.8 kB / 384.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.2174, allocations: 0.6012 MB / 384.9 MB, free: 9.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009845/0.2184, allocations: 446.8 kB / 385.3 MB, free: 8.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/0.2184, allocations: 4 kB / 385.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003854/0.2223, allocations: 1.408 MB / 386.8 MB, free: 7.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.2223, allocations: 8 kB / 386.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-05/0.2224, allocations: 8.312 kB / 386.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001185/0.2236, allocations: 234.4 kB / 387 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/0.2275, allocations: 0.9443 MB / 387.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/0.241, allocations: 10.21 MB / 398.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.2422, allocations: 162.8 kB / 398.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.411e-05/0.2423, allocations: 36 kB / 398.3 MB, free: 11.1 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (111): * Single equations (assignments): 105 * 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.0006745/0.243, allocations: 276 kB / 398.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/0.2432, allocations: 106.7 kB / 398.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002354/0.2435, allocations: 104.9 kB / 398.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2435, allocations: 8 kB / 398.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.2435, allocations: 0 / 398.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.2435, allocations: 7.984 kB / 398.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005442/0.249, allocations: 2.529 MB / 401.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.249, allocations: 0 / 401.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005853/0.2496, allocations: 127.8 kB / 401.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001438/0.2511, allocations: 444.9 kB / 401.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.2512, allocations: 19.95 kB / 401.9 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.2635, allocations: 10.12 MB / 412.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2636, allocations: 3.984 kB / 412.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004543/0.2682, allocations: 2.044 MB / 414.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003876/0.2686, allocations: 183.9 kB / 414.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.2687, allocations: 19.98 kB / 414.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007067/0.2694, allocations: 119.9 kB / 414.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.2696, allocations: 60.42 kB / 414.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.2696, allocations: 28 kB / 414.5 MB, free: 9.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007415/0.2704, allocations: 0.5381 MB / 415.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2704, allocations: 4 kB / 415.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001322/0.2717, allocations: 363 kB / 415.4 MB, free: 9.051 MB / 350.1 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.00471/0.2764, allocations: 2.608 MB / 418 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005422/0.2819, allocations: 2.136 MB / 420.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.2819, allocations: 8 kB / 420.2 MB, free: 4.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.2837, allocations: 1.171 MB / 421.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001417/0.2851, allocations: 195.1 kB / 421.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1948/0.4799, allocations: 6.826 MB / 428.4 MB, free: 62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007257/0.4807, allocations: 1.075 MB / 429.4 MB, free: 61.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000602/0.4813, allocations: 101.4 kB / 429.5 MB, free: 61.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005566/0.4819, allocations: 430.6 kB / 429.9 MB, free: 61.28 MB / 350.1 MB Notification: Performance of SimCode: time 1.313e-06/0.4819, allocations: 1.281 kB / 429.9 MB, free: 61.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06125/0.5431, allocations: 21.66 MB / 451.6 MB, free: 49.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002521/0.5434, allocations: 233.3 kB / 451.8 MB, free: 49.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.494/3.038, allocations: 0 / 451.8 MB, free: 49.59 MB / 350.1 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