Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001034/0.001034, allocations: 98.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 206.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002304, allocations: 8 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1044, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.006356/0.1108, allocations: 6.331 MB / 364.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.1147, allocations: 1.945 MB / 366.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007361/0.1154, allocations: 23.94 kB / 366.5 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.1157, allocations: 162.7 kB / 366.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.1168, allocations: 0.4985 MB / 367.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008538/0.1176, allocations: 311.5 kB / 367.5 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001487/0.1191, allocations: 1.15 MB / 368.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007368/0.1199, allocations: 473.5 kB / 369.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006628/0.1206, allocations: 0.4981 MB / 369.6 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006322/0.1212, allocations: 0.5794 MB / 370.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.1213, allocations: 72 kB / 370.2 MB, free: 1.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001616/0.1215, allocations: 76 kB / 370.3 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.1217, allocations: 235.1 kB / 370.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.122, allocations: 285 kB / 370.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2497/0.3717, allocations: 1.584 MB / 372.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.3717, allocations: 0 / 372.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.531e-06/0.3718, allocations: 1.188 kB / 372.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001022/0.3719, allocations: 3.828 kB / 372.4 MB, free: 10.66 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.005185/0.377, allocations: 1.591 MB / 374 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.3771, allocations: 10.16 kB / 374 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004702/0.3776, allocations: 184.6 kB / 374.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003979/0.378, allocations: 157.1 kB / 374.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.3795, allocations: 0.7056 MB / 375 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.3796, allocations: 91.72 kB / 375.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.3799, allocations: 119.3 kB / 375.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.3833, allocations: 1.311 MB / 376.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.3834, allocations: 6.156 kB / 376.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.3835, allocations: 53.44 kB / 376.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.681e-05/0.3835, allocations: 34.25 kB / 376.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002991/0.3865, allocations: 1.148 MB / 377.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.3967, allocations: 5.057 MB / 382.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.3994, allocations: 1.253 MB / 384.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.986e-05/0.3995, allocations: 13.25 kB / 384.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.3995, allocations: 48.33 kB / 384.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 2.766e-06/0.3995, allocations: 1 kB / 384.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.009531/0.4091, allocations: 3.134 MB / 387.3 MB, free: 6.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.4092, allocations: 85.89 kB / 387.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.4106, allocations: 0.8031 MB / 388.2 MB, free: 6.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.4107, allocations: 39.8 kB / 388.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.4112, allocations: 0.5882 MB / 388.8 MB, free: 5.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.4114, allocations: 283.4 kB / 389.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/0.4115, allocations: 19.88 kB / 389.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.4116, allocations: 352.2 kB / 389.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.4127, allocations: 381.3 kB / 389.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.4139, allocations: 0.6009 MB / 390.4 MB, free: 4.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.415, allocations: 446.9 kB / 390.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.415, allocations: 2.094 kB / 390.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003471/0.4185, allocations: 1.407 MB / 392.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.4185, allocations: 6.875 kB / 392.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.4186, allocations: 6.875 kB / 392.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008215/0.4194, allocations: 237.3 kB / 392.5 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/0.4233, allocations: 0.9389 MB / 393.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/0.4365, allocations: 10.35 MB / 403.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.4379, allocations: 158.1 kB / 404 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-05/0.438, allocations: 35.31 kB / 404 MB, free: 10.62 MB / 318.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.0006525/0.4386, allocations: 275.3 kB / 404.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.4389, allocations: 101.1 kB / 404.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001958/0.4391, allocations: 103.5 kB / 404.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.916e-06/0.4391, allocations: 8.938 kB / 404.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.4391, allocations: 0 / 404.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4391, allocations: 5.797 kB / 404.5 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/0.4447, allocations: 2.534 MB / 407 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4448, allocations: 8.062 kB / 407 MB, free: 7.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005728/0.4453, allocations: 123.5 kB / 407.2 MB, free: 7.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.4468, allocations: 452.2 kB / 407.6 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.963e-05/0.4469, allocations: 27.88 kB / 407.6 MB, free: 7.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/0.4606, allocations: 10.28 MB / 417.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.4606, allocations: 0 / 417.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005309/0.466, allocations: 2.075 MB / 420 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.4666, allocations: 191.7 kB / 420.2 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000123/0.4667, allocations: 18.19 kB / 420.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.4675, allocations: 119.9 kB / 420.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.4677, allocations: 64.06 kB / 420.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-05/0.4678, allocations: 24 kB / 420.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000778/0.4686, allocations: 0.5498 MB / 420.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4686, allocations: 0 / 420.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001606/0.4702, allocations: 355 kB / 421.3 MB, free: 8.797 MB / 334.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.005739/0.4759, allocations: 2.861 MB / 424.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006735/0.4827, allocations: 2.13 MB / 426.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.4828, allocations: 2.516 kB / 426.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002332/0.4852, allocations: 1.176 MB / 427.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.4866, allocations: 193.8 kB / 427.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/0.5054, allocations: 11.05 MB / 438.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.5066, allocations: 1.101 MB / 439.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00069/0.5073, allocations: 95.52 kB / 439.9 MB, free: 5.754 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/0.5079, allocations: 431.3 kB / 440.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of SimCode: time 1.783e-06/0.5079, allocations: 0 / 440.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05063/0.5586, allocations: 21.63 MB / 461.9 MB, free: 44 kB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003489/0.559, allocations: 222 kB / 462.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.211, allocations: 0 / 462.2 MB, free: 15.8 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_ControlCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit_res.mat does not exist to compare? outputFormat=mat