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.00123/0.001235, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001339/0.001339, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.526/1.526, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003436, allocations: 8.312 kB / 300.8 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 50.41 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.008985/0.1434, allocations: 6.328 MB / 357.6 MB, free: 5.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004691/0.1482, allocations: 1.91 MB / 359.5 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.1492, allocations: 27.88 kB / 359.5 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004856/0.1497, allocations: 162.7 kB / 359.7 MB, free: 3.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001407/0.1512, allocations: 0.4946 MB / 360.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008125/0.152, allocations: 311.5 kB / 360.5 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0017/0.1537, allocations: 1.15 MB / 361.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000874/0.1546, allocations: 465.6 kB / 362.1 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006807/0.1553, allocations: 0.502 MB / 362.6 MB, free: 248 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006681/0.1559, allocations: 0.5755 MB / 363.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.1561, allocations: 76 kB / 363.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.1562, allocations: 76 kB / 363.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003114/0.1566, allocations: 243 kB / 363.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003317/0.1569, allocations: 281 kB / 363.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.1589, allocations: 1.585 MB / 365.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1589, allocations: 0 / 365.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1589, allocations: 0 / 365.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.1589, allocations: 0 / 365.4 MB, free: 13.41 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.003379/0.1623, allocations: 1.59 MB / 367 MB, free: 11.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1624, allocations: 8.031 kB / 367 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002604/0.1626, allocations: 185.8 kB / 367.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.1629, allocations: 150.2 kB / 367.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.1643, allocations: 0.7133 MB / 368 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.1644, allocations: 90.45 kB / 368.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1645, allocations: 127.9 kB / 368.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002596/0.1671, allocations: 1.305 MB / 369.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/0.1672, allocations: 3.938 kB / 369.5 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001552/0.1673, allocations: 52 kB / 369.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.473e-05/0.1674, allocations: 32 kB / 369.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002675/0.1701, allocations: 1.145 MB / 370.8 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009357/0.1794, allocations: 5.062 MB / 375.8 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.1822, allocations: 1.25 MB / 377.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.859e-05/0.1823, allocations: 12.64 kB / 377.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.1824, allocations: 51.17 kB / 377.1 MB, free: 1.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 3.898e-06/0.1824, allocations: 3.938 kB / 377.1 MB, free: 1.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.009281/0.1917, allocations: 3.131 MB / 380.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.336e-05/0.1918, allocations: 89.77 kB / 380.4 MB, free: 13.81 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.1931, allocations: 0.8057 MB / 381.2 MB, free: 13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-05/0.1932, allocations: 45.7 kB / 381.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005663/0.1938, allocations: 0.5881 MB / 381.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002808/0.1941, allocations: 272 kB / 382.1 MB, free: 12.08 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.1941, allocations: 20 kB / 382.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.1943, allocations: 345.9 kB / 382.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.1954, allocations: 389.8 kB / 382.8 MB, free: 11.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.1965, allocations: 0.5934 MB / 383.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.1975, allocations: 454.7 kB / 383.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1975, allocations: 0 / 383.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003395/0.2009, allocations: 1.412 MB / 385.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.201, allocations: 8 kB / 385.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.201, allocations: 8 kB / 385.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008512/0.2019, allocations: 234.6 kB / 385.5 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.2058, allocations: 0.9326 MB / 386.4 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/0.2211, allocations: 10.37 MB / 396.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.2225, allocations: 154.9 kB / 397 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/0.2226, allocations: 39.98 kB / 397 MB, free: 12.24 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.0006941/0.2233, allocations: 273.5 kB / 397.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.2235, allocations: 106.7 kB / 397.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002023/0.2237, allocations: 108.9 kB / 397.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.2237, allocations: 8 kB / 397.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.2237, allocations: 0 / 397.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.2237, allocations: 3.984 kB / 397.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005457/0.2292, allocations: 2.533 MB / 400 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2292, allocations: 0 / 400 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.2298, allocations: 131.9 kB / 400.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.2312, allocations: 440.9 kB / 400.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.796e-05/0.2313, allocations: 23.98 kB / 400.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/0.2453, allocations: 10.29 MB / 410.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.2453, allocations: 3.984 kB / 410.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005955/0.2513, allocations: 2.08 MB / 413 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005112/0.2518, allocations: 183.8 kB / 413.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.252, allocations: 16 kB / 413.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.2533, allocations: 123.9 kB / 413.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.2535, allocations: 56.48 kB / 413.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.301e-05/0.2536, allocations: 27.92 kB / 413.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001152/0.2548, allocations: 0.542 MB / 413.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2548, allocations: 3.938 kB / 413.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002086/0.2569, allocations: 355 kB / 414.3 MB, free: 9.977 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.008048/0.265, allocations: 2.863 MB / 417.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.008502/0.2735, allocations: 2.132 MB / 419.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.164e-05/0.2736, allocations: 8 kB / 419.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00242/0.276, allocations: 1.167 MB / 420.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.2775, allocations: 179.1 kB / 420.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2209/0.4984, allocations: 11.06 MB / 431.7 MB, free: 58.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006615/0.4991, allocations: 1.097 MB / 432.8 MB, free: 57.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00052/0.4996, allocations: 105.1 kB / 432.9 MB, free: 57.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.5001, allocations: 429.7 kB / 433.3 MB, free: 57.61 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5001, allocations: 0 / 433.3 MB, free: 57.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.5344, allocations: 21.63 MB / 454.9 MB, free: 46.2 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.5346, allocations: 227.9 kB / 455.1 MB, free: 45.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.445/2.979, allocations: 0 / 455.1 MB, free: 45.95 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