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.0009824/0.0009827, allocations: 172.5 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.364/1.364, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.001043/0.001043, allocations: 94.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.149e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 47.57 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3243/0.4302, allocations: 83.23 MB / 453.3 MB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/0.4305, allocations: 71.91 kB / 453.4 MB, free: 9.973 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06525/0.4958, allocations: 34.62 MB / 488 MB, free: 8.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4958, allocations: 0 / 488 MB, free: 8.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.4959, allocations: 8 kB / 488 MB, free: 8.918 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.0009673/0.4968, allocations: 0.8739 MB / 488.9 MB, free: 7.973 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.4969, allocations: 12.03 kB / 488.9 MB, free: 7.961 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.557e-05/0.497, allocations: 54.55 kB / 489 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.4971, allocations: 79.06 kB / 489.1 MB, free: 7.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.4977, allocations: 403.6 kB / 489.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.4977, allocations: 20 kB / 489.5 MB, free: 7.363 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.4978, allocations: 20 kB / 489.5 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/0.4983, allocations: 301.2 kB / 489.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.4983, allocations: 0 / 489.8 MB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.098e-05/0.4984, allocations: 12 kB / 489.8 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.4984, allocations: 4 kB / 489.8 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/0.4987, allocations: 203.9 kB / 490 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.4999, allocations: 0.8787 MB / 490.9 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.5003, allocations: 222.5 kB / 491.1 MB, free: 5.668 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/0.5006, allocations: 149.1 kB / 491.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.5006, allocations: 0 / 491.2 MB, free: 5.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004295/0.501, allocations: 385.9 kB / 491.6 MB, free: 5.105 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.501, allocations: 0 / 491.6 MB, free: 5.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008791/0.5019, allocations: 0.5853 MB / 492.2 MB, free: 4.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/0.502, allocations: 174.4 kB / 492.4 MB, free: 4.281 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.5031, allocations: 0.8822 MB / 493.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.451e-05/0.5031, allocations: 33.7 kB / 493.3 MB, free: 3.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.211e-05/0.5032, allocations: 153.8 kB / 493.4 MB, free: 3.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.5033, allocations: 51.36 kB / 493.5 MB, free: 3.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.5033, allocations: 4 kB / 493.5 MB, free: 3.141 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.5035, allocations: 342.8 kB / 493.8 MB, free: 2.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.5037, allocations: 124.6 kB / 494 MB, free: 2.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.5039, allocations: 158.5 kB / 494.1 MB, free: 2.512 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.5042, allocations: 222.7 kB / 494.3 MB, free: 2.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5042, allocations: 4 kB / 494.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007788/0.505, allocations: 0.5585 MB / 494.9 MB, free: 1.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.275e-05/0.5051, allocations: 134.8 kB / 495 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.5051, allocations: 0 / 495 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.5051, allocations: 0 / 495 MB, free: 1.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.955e-05/0.5052, allocations: 19.92 kB / 495 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.5052, allocations: 0 / 495 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.5055, allocations: 35.97 kB / 495.1 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.5056, allocations: 115.8 kB / 495.2 MB, free: 1.352 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.0002114/0.5058, allocations: 285.9 kB / 495.5 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.628e-05/0.5059, allocations: 75.06 kB / 495.5 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002012/0.5061, allocations: 138.2 kB / 495.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.5061, allocations: 0 / 495.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.5061, allocations: 0 / 495.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.5061, allocations: 0 / 495.7 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006418/0.5068, allocations: 0.6219 MB / 496.3 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5068, allocations: 0 / 496.3 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.443e-05/0.5069, allocations: 12 kB / 496.3 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.5069, allocations: 0 / 496.3 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/0.5069, allocations: 27.98 kB / 496.3 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5069, allocations: 0 / 496.3 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5069, allocations: 0 / 496.3 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009115/0.5078, allocations: 0.686 MB / 497 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006409/0.5085, allocations: 0.4918 MB / 497.5 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.5086, allocations: 24 kB / 497.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.5088, allocations: 23.98 kB / 497.6 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.509, allocations: 55.92 kB / 497.6 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5091, allocations: 119.9 kB / 497.7 MB, free: 14.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008537/0.51, allocations: 0.7251 MB / 498.5 MB, free: 13.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.51, allocations: 0 / 498.5 MB, free: 13.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.5103, allocations: 88 kB / 498.5 MB, free: 13.85 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: 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.001311/0.5116, allocations: 1.258 MB / 499.8 MB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007327/0.5124, allocations: 0.6382 MB / 0.4887 GB, free: 11.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5124, allocations: 0 / 0.4887 GB, free: 11.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000517/0.5129, allocations: 0.5251 MB / 0.4892 GB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007202/0.5136, allocations: 174.6 kB / 0.4894 GB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.5157, allocations: 1.21 MB / 0.4906 GB, free: 9.855 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006719/0.5164, allocations: 0.9838 MB / 0.4915 GB, free: 8.844 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004071/0.5168, allocations: 160.9 kB / 0.4917 GB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.5171, allocations: 131.2 kB / 0.4918 GB, free: 8.555 MB / 378.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5171, allocations: 0 / 0.4918 GB, free: 8.555 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.5387, allocations: 9.133 MB / 0.5007 GB, free: 15.38 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/0.539, allocations: 156.3 kB / 0.5009 GB, free: 15.15 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.406, allocations: 0 / 0.5009 GB, free: 15.15 MB / 394.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