Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.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.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",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.001584/0.001583, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008153/0.0008152, allocations: 84.09 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.946e-05/1.948e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.08049, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2929/0.3734, allocations: 82.82 MB / 446 MB, free: 12.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.3738, allocations: 70.72 kB / 446.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1086/0.4824, allocations: 34.39 MB / 480.4 MB, free: 368 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4824, allocations: 0 / 480.4 MB, free: 368 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.4825, allocations: 8 kB / 480.5 MB, free: 360 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0008927/0.4834, allocations: 0.8664 MB / 481.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.4834, allocations: 15.97 kB / 481.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.4835, allocations: 83.06 kB / 481.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.484, allocations: 395.4 kB / 481.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.4841, allocations: 15.98 kB / 481.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.4841, allocations: 12 kB / 481.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003597/0.4845, allocations: 207.6 kB / 482 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.485, allocations: 269.5 kB / 482.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.485, allocations: 0 / 482.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/0.485, allocations: 8 kB / 482.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.485, allocations: 0 / 482.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.4863, allocations: 0.844 MB / 483.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.4866, allocations: 206.5 kB / 483.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.4868, allocations: 140.8 kB / 483.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.4869, allocations: 8 kB / 483.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004288/0.4873, allocations: 378.7 kB / 483.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.4873, allocations: 0 / 483.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007912/0.4881, allocations: 464.4 kB / 484.3 MB, free: 12.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.4882, allocations: 174.2 kB / 484.5 MB, free: 12.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001075/0.4893, allocations: 0.8354 MB / 485.3 MB, free: 11.22 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-05/0.4894, allocations: 37.69 kB / 485.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.4895, allocations: 149.8 kB / 485.5 MB, free: 11.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.244e-05/0.4896, allocations: 55.36 kB / 485.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.4896, allocations: 7.984 kB / 485.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.4897, allocations: 342.9 kB / 485.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.49, allocations: 108.5 kB / 486 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.4901, allocations: 147 kB / 486.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.4903, allocations: 87.95 kB / 486.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.4903, allocations: 4 kB / 486.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006324/0.491, allocations: 437.1 kB / 486.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.489e-05/0.4911, allocations: 134.8 kB / 486.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4911, allocations: 0 / 486.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.4911, allocations: 0 / 486.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.597e-05/0.4912, allocations: 19.92 kB / 486.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.4912, allocations: 0 / 486.8 MB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002636/0.4915, allocations: 27.97 kB / 486.9 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4916, allocations: 115.9 kB / 487 MB, free: 9.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002247/0.4918, allocations: 277.9 kB / 487.2 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007452/0.4926, allocations: 0.4927 MB / 487.7 MB, free: 8.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.4927, allocations: 79.06 kB / 487.8 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.4929, allocations: 130.2 kB / 487.9 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-06/0.4929, allocations: 4 kB / 487.9 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.4929, allocations: 0 / 487.9 MB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4929, allocations: 4 kB / 487.9 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006622/0.4936, allocations: 0.5795 MB / 488.5 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4936, allocations: 0 / 488.5 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.846e-05/0.4937, allocations: 15.98 kB / 488.5 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.4937, allocations: 0 / 488.5 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.099e-05/0.4937, allocations: 28.11 kB / 488.6 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4938, allocations: 7.938 kB / 488.6 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4938, allocations: 0 / 488.6 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.4946, allocations: 0.5233 MB / 489.1 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006342/0.4952, allocations: 499.7 kB / 489.6 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.4953, allocations: 20 kB / 489.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.4955, allocations: 27.95 kB / 489.6 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4957, allocations: 55.94 kB / 489.7 MB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.4958, allocations: 116.1 kB / 489.8 MB, free: 6.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008585/0.4967, allocations: 0.6938 MB / 490.5 MB, free: 5.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4967, allocations: 0 / 490.5 MB, free: 5.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003468/0.4971, allocations: 83.94 kB / 490.6 MB, free: 5.797 MB / 362.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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001118/0.4982, allocations: 1.107 MB / 491.7 MB, free: 4.656 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007049/0.4989, allocations: 0.6225 MB / 492.3 MB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4989, allocations: 0 / 492.3 MB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000443/0.4994, allocations: 0.5093 MB / 492.8 MB, free: 3.426 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007307/0.5001, allocations: 168 kB / 493 MB, free: 3.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.5021, allocations: 1.197 MB / 494.2 MB, free: 2.023 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006181/0.5028, allocations: 0.9835 MB / 495.2 MB, free: 1.012 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003633/0.5031, allocations: 161.2 kB / 495.3 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002296/0.5034, allocations: 135.2 kB / 495.4 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5034, allocations: 0 / 495.4 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.5316, allocations: 8.544 MB / 0.4922 GB, free: 8.129 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.5318, allocations: 133.1 kB / 0.4923 GB, free: 7.938 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.919/2.451, allocations: 3.938 kB / 0.4923 GB, free: 7.934 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat