Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009137/0.0009139, allocations: 96.06 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003649, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3091, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.4264, allocations: 80.89 MB / 482.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4267, allocations: 79.95 kB / 482.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01641/0.4431, allocations: 6.194 MB / 488.8 MB, free: 9.262 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4432, allocations: 0 / 488.8 MB, free: 9.262 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.293e-05/0.4432, allocations: 8 kB / 488.8 MB, free: 9.254 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0009979/0.4442, allocations: 0.6355 MB / 489.4 MB, free: 8.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.4443, allocations: 12.03 kB / 489.4 MB, free: 8.559 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.344e-05/0.4444, allocations: 70.53 kB / 489.5 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.715e-05/0.4444, allocations: 39.53 kB / 489.5 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.4449, allocations: 320.3 kB / 489.8 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.445, allocations: 25 kB / 489.9 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.445, allocations: 39.98 kB / 489.9 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007051/0.4457, allocations: 386.5 kB / 490.3 MB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.4457, allocations: 7.953 kB / 490.3 MB, free: 7.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.4458, allocations: 12 kB / 490.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.4458, allocations: 8 kB / 490.3 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006369/0.4464, allocations: 315.8 kB / 490.6 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.4489, allocations: 1.463 MB / 492.1 MB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.4495, allocations: 255.8 kB / 492.3 MB, free: 5.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.4495, allocations: 3.984 kB / 492.3 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.4496, allocations: 42.56 kB / 492.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 2.515e-06/0.4496, allocations: 0 / 492.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.002134/0.4517, allocations: 0.7819 MB / 493.2 MB, free: 4.594 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.4518, allocations: 59.33 kB / 493.2 MB, free: 4.523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003317/0.4521, allocations: 274.8 kB / 493.5 MB, free: 4.258 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.4522, allocations: 25.7 kB / 493.5 MB, free: 4.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.4523, allocations: 235.6 kB / 493.7 MB, free: 3.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.4524, allocations: 51.27 kB / 493.8 MB, free: 3.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.125e-05/0.4524, allocations: 8 kB / 493.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4525, allocations: 334.8 kB / 494.1 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002395/0.4528, allocations: 83.95 kB / 494.2 MB, free: 3.516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.4531, allocations: 169.4 kB / 494.4 MB, free: 3.316 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.4533, allocations: 102.8 kB / 494.5 MB, free: 3.219 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4533, allocations: 3.938 kB / 494.5 MB, free: 3.215 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009805/0.4543, allocations: 442.9 kB / 494.9 MB, free: 2.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4543, allocations: 11.94 kB / 494.9 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.4544, allocations: 7.984 kB / 494.9 MB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004594/0.4548, allocations: 121.6 kB / 495 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.455, allocations: 35.98 kB / 495.1 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004193/0.4592, allocations: 3.341 MB / 498.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000276/0.4595, allocations: 39.59 kB / 498.5 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.4595, allocations: 15.98 kB / 498.5 MB, free: 14.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (23): * Single equations (assignments): 21 * 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: 2 * 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: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002511/0.4598, allocations: 153.8 kB / 498.6 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.194e-05/0.4599, allocations: 31.67 kB / 498.7 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.407e-05/0.4599, allocations: 34.3 kB / 498.7 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.4599, allocations: 0 / 498.7 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4599, allocations: 0 / 498.7 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.4599, allocations: 0 / 498.7 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004394/0.4604, allocations: 365.6 kB / 499 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4604, allocations: 0 / 499 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.157e-05/0.4605, allocations: 15.95 kB / 499.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004061/0.4609, allocations: 121.6 kB / 499.2 MB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.4609, allocations: 4 kB / 499.2 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003552/0.4645, allocations: 3.224 MB / 0.4906 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4645, allocations: 0 / 0.4906 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009625/0.4655, allocations: 456.6 kB / 0.4911 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4656, allocations: 108.8 kB / 0.4912 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.178e-05/0.4657, allocations: 3.984 kB / 0.4912 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.4659, allocations: 31.98 kB / 0.4912 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.694e-05/0.466, allocations: 11.98 kB / 0.4912 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.466, allocations: 11.98 kB / 0.4912 GB, free: 10.01 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002546/0.4662, allocations: 214 kB / 0.4914 GB, free: 9.797 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4662, allocations: 0 / 0.4914 GB, free: 9.797 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005376/0.4668, allocations: 103.7 kB / 0.4915 GB, free: 9.695 MB / 378.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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: 2 * 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: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001243/0.468, allocations: 0.983 MB / 0.4925 GB, free: 8.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.4692, allocations: 0.5205 MB / 0.493 GB, free: 8.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4692, allocations: 7.938 kB / 0.493 GB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004754/0.4697, allocations: 341.8 kB / 0.4933 GB, free: 7.766 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.4701, allocations: 44.58 kB / 0.4934 GB, free: 7.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/0.4744, allocations: 3.384 MB / 0.4967 GB, free: 4.242 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005404/0.475, allocations: 0.7872 MB / 0.4975 GB, free: 3.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001535/0.4751, allocations: 22.98 kB / 0.4975 GB, free: 3.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.4753, allocations: 103.4 kB / 0.4976 GB, free: 3.309 MB / 378.7 MB Notification: Performance of SimCode: time 1.353e-06/0.4753, allocations: 3.938 kB / 0.4976 GB, free: 3.305 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2296/0.7049, allocations: 6.392 MB / 0.5038 GB, free: 100.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.7052, allocations: 214 kB / 0.504 GB, free: 99.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/2.786, allocations: 0 / 0.504 GB, free: 99.95 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat does not exist to compare? outputFormat=mat