Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008119/0.0008119, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.694e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.08856, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3025/0.3911, allocations: 78.24 MB / 448.4 MB, free: 15.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3913, allocations: 66.53 kB / 448.4 MB, free: 14.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01564/0.407, allocations: 5.76 MB / 454.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.407, allocations: 0 / 454.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.407, allocations: 4 kB / 454.2 MB, free: 10.05 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009699/0.408, allocations: 0.5782 MB / 454.8 MB, free: 9.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.4081, allocations: 8.031 kB / 454.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.856e-05/0.4082, allocations: 57.17 kB / 454.8 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.82e-05/0.4082, allocations: 31.62 kB / 454.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003345/0.4086, allocations: 280.8 kB / 455.1 MB, free: 9.062 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.4086, allocations: 15.81 kB / 455.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.4086, allocations: 23.38 kB / 455.2 MB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004259/0.4091, allocations: 255.9 kB / 455.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.4091, allocations: 0 / 455.4 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.4091, allocations: 11.19 kB / 455.4 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.4091, allocations: 8 kB / 455.4 MB, free: 8.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.4095, allocations: 174.1 kB / 455.6 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.4111, allocations: 1.105 MB / 456.7 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.4115, allocations: 137.8 kB / 456.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.417e-05/0.4116, allocations: 57.44 kB / 456.9 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.4116, allocations: 7.938 kB / 456.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.4118, allocations: 135.5 kB / 457 MB, free: 7.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.4118, allocations: 0 / 457 MB, free: 7.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005927/0.4124, allocations: 199.5 kB / 457.2 MB, free: 7.262 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.535e-05/0.4125, allocations: 110.8 kB / 457.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.4128, allocations: 250.3 kB / 457.6 MB, free: 6.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.4128, allocations: 29.69 kB / 457.6 MB, free: 6.891 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.4129, allocations: 202.3 kB / 457.8 MB, free: 6.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/0.413, allocations: 45.7 kB / 457.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.413, allocations: 3.688 kB / 457.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4131, allocations: 332.4 kB / 458.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.4132, allocations: 58.05 kB / 458.3 MB, free: 6.316 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.4134, allocations: 162 kB / 458.4 MB, free: 6.137 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.4136, allocations: 108.7 kB / 458.5 MB, free: 6.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.4136, allocations: 4 kB / 458.5 MB, free: 6.031 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006958/0.4143, allocations: 340.5 kB / 458.9 MB, free: 5.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.721e-05/0.4143, allocations: 37.69 kB / 458.9 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.4143, allocations: 4 kB / 458.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/0.4146, allocations: 52.84 kB / 458.9 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.4148, allocations: 59.98 kB / 459 MB, free: 5.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.4164, allocations: 1.517 MB / 460.5 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.4168, allocations: 59.72 kB / 460.6 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.4168, allocations: 19.98 kB / 460.6 MB, free: 3.793 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001052/0.4169, allocations: 116.9 kB / 460.7 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.417, allocations: 19.72 kB / 460.7 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.417, allocations: 29.83 kB / 460.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.4171, allocations: 0 / 460.8 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.4171, allocations: 7.953 kB / 460.8 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.4171, allocations: 4 kB / 460.8 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.4174, allocations: 305.3 kB / 461.1 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4174, allocations: 0 / 461.1 MB, free: 3.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.4175, allocations: 19.98 kB / 461.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001296/0.4177, allocations: 57.02 kB / 461.1 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.4177, allocations: 8 kB / 461.2 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.4191, allocations: 1.496 MB / 462.6 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.4191, allocations: 3.953 kB / 462.7 MB, free: 1.547 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.4196, allocations: 234.1 kB / 462.9 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.4197, allocations: 116.7 kB / 463 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.697e-05/0.4198, allocations: 8 kB / 463 MB, free: 1.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.4201, allocations: 27.97 kB / 463 MB, free: 1.129 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.436e-05/0.4201, allocations: 39.89 kB / 463.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.4202, allocations: 0 / 463.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001866/0.4204, allocations: 195.1 kB / 463.3 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4204, allocations: 3.938 kB / 463.3 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003155/0.4207, allocations: 83.84 kB / 463.3 MB, free: 0.8164 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008373/0.4215, allocations: 0.7701 MB / 464.1 MB, free: 12 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.4221, allocations: 334.5 kB / 464.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4221, allocations: 4.25 kB / 464.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.4223, allocations: 190.4 kB / 464.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.4226, allocations: 36.83 kB / 464.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007617/0.4233, allocations: 329.6 kB / 465 MB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.4237, allocations: 0.7599 MB / 465.7 MB, free: 14.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.4239, allocations: 22.08 kB / 465.8 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.424, allocations: 83.41 kB / 465.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.424, allocations: 0 / 465.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.4432, allocations: 5.935 MB / 471.8 MB, free: 8.227 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002486/0.4435, allocations: 193.7 kB / 472 MB, free: 7.988 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.267, allocations: 0 / 472 MB, free: 7.988 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat does not exist to compare? outputFormat=mat