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.001081/0.001081, allocations: 100.4 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 194.2 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 227.3 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003497, allocations: 4 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1512, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.01016/0.1614, allocations: 6.888 MB / 365.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004964/0.1664, allocations: 1.851 MB / 367.1 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009619/0.1674, allocations: 27.94 kB / 367.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004673/0.1679, allocations: 170.6 kB / 367.2 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009324/0.1688, allocations: 361.1 kB / 367.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.1696, allocations: 311.5 kB / 367.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001523/0.1712, allocations: 1.63 MB / 369.5 MB, free: 2.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.1719, allocations: 465.6 kB / 370 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006956/0.1726, allocations: 0.498 MB / 370.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.1733, allocations: 0.5754 MB / 371.1 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001285/0.1734, allocations: 76 kB / 371.1 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.1736, allocations: 76 kB / 371.2 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.1738, allocations: 238.9 kB / 371.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002344/0.174, allocations: 285 kB / 371.7 MB, free: 496 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2568/0.4308, allocations: 1.587 MB / 373.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.797e-06/0.4308, allocations: 0 / 373.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.4309, allocations: 0.6875 kB / 373.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.635e-05/0.4309, allocations: 0.75 kB / 373.3 MB, free: 10.85 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.003488/0.4344, allocations: 1.589 MB / 374.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.4345, allocations: 10.19 kB / 374.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003072/0.4348, allocations: 186.8 kB / 375.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002991/0.4351, allocations: 157.5 kB / 375.2 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.4364, allocations: 0.7067 MB / 376 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.4365, allocations: 92.08 kB / 376 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.4368, allocations: 120.6 kB / 376.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003281/0.4401, allocations: 1.323 MB / 377.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.4401, allocations: 0.75 kB / 377.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.4402, allocations: 50.81 kB / 377.5 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.252e-05/0.4403, allocations: 30.25 kB / 377.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.443, allocations: 1.153 MB / 378.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009082/0.4521, allocations: 5.061 MB / 383.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.4547, allocations: 1.257 MB / 385 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.4558, allocations: 0.5511 MB / 385.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.137e-05/0.4559, allocations: 9.328 kB / 385.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.4559, allocations: 48.84 kB / 385.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=79): time 3.787e-06/0.456, allocations: 0 / 385.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=79): time 0.01003/0.466, allocations: 3.155 MB / 388.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.4661, allocations: 86.2 kB / 388.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.4675, allocations: 0.8044 MB / 389.7 MB, free: 5.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.603e-05/0.4676, allocations: 38.2 kB / 389.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003848/0.468, allocations: 0.5913 MB / 390.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.4683, allocations: 278.4 kB / 390.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.892e-05/0.4683, allocations: 19.31 kB / 390.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.937e-05/0.4684, allocations: 349.3 kB / 390.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008967/0.4693, allocations: 387 kB / 391.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.4703, allocations: 0.5974 MB / 391.9 MB, free: 4.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009607/0.4713, allocations: 451.8 kB / 392.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.4713, allocations: 1.375 kB / 392.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00319/0.4745, allocations: 1.412 MB / 393.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.4746, allocations: 10.25 kB / 393.8 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.4746, allocations: 10.5 kB / 393.8 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008098/0.4754, allocations: 230.8 kB / 394 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003297/0.4787, allocations: 0.9368 MB / 395 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.4909, allocations: 10.21 MB / 405.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/0.4923, allocations: 153.2 kB / 405.3 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.4924, allocations: 44.06 kB / 405.4 MB, free: 9.91 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.0007336/0.4931, allocations: 272.6 kB / 405.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002146/0.4933, allocations: 102.9 kB / 405.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.4936, allocations: 104.9 kB / 405.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.4936, allocations: 11.98 kB / 405.8 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.4936, allocations: 0 / 405.8 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4936, allocations: 3.984 kB / 405.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005482/0.4991, allocations: 2.531 MB / 408.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.4991, allocations: 0 / 408.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005911/0.4997, allocations: 125.5 kB / 408.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001419/0.5012, allocations: 448.5 kB / 408.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/0.5012, allocations: 23.98 kB / 409 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/0.5133, allocations: 10.11 MB / 419.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.5134, allocations: 4.031 kB / 419.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004847/0.5182, allocations: 2.046 MB / 421.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005063/0.5188, allocations: 191.7 kB / 421.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.5189, allocations: 16 kB / 421.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007775/0.5197, allocations: 119.9 kB / 421.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.5199, allocations: 65.92 kB / 421.5 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/0.5199, allocations: 23.98 kB / 421.5 MB, free: 8.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000825/0.5208, allocations: 0.5419 MB / 422.1 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5208, allocations: 4.875 kB / 422.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001467/0.5223, allocations: 359 kB / 422.4 MB, free: 8 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.004853/0.5271, allocations: 2.609 MB / 425 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006103/0.5332, allocations: 2.136 MB / 427.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/0.5333, allocations: 0 / 427.2 MB, free: 3.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.5353, allocations: 1.174 MB / 428.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.5369, allocations: 199.4 kB / 428.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/0.5513, allocations: 6.853 MB / 435.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008467/0.5522, allocations: 1.076 MB / 436.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005779/0.5528, allocations: 103.5 kB / 436.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005672/0.5534, allocations: 435.3 kB / 437 MB, free: 9.043 MB / 350.1 MB Notification: Performance of SimCode: time 1.362e-06/0.5534, allocations: 3.656 kB / 437 MB, free: 9.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05023/0.6036, allocations: 21.63 MB / 458.6 MB, free: 3.754 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.6039, allocations: 231 kB / 458.9 MB, free: 3.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.595/3.199, allocations: 0 / 458.9 MB, free: 3.516 MB / 366.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