Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_cpp_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.002467/0.002467, allocations: 185.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.088/2.088, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001146/0.001146, allocations: 85.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004286/0.0004283, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3425, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.4796, allocations: 83.32 MB / 458 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.4799, allocations: 79.95 kB / 458 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1256/0.6055, allocations: 34.39 MB / 492.4 MB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.6056, allocations: 0 / 492.4 MB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.91e-05/0.6056, allocations: 11.94 kB / 492.4 MB, free: 10.96 MB / 378.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.001735/0.6074, allocations: 0.995 MB / 493.4 MB, free: 9.895 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.6074, allocations: 8.031 kB / 493.4 MB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001533/0.6076, allocations: 54.55 kB / 493.5 MB, free: 9.824 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.6078, allocations: 79.06 kB / 493.6 MB, free: 9.746 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008701/0.6087, allocations: 411.5 kB / 494 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.462e-05/0.6087, allocations: 12 kB / 494 MB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.6089, allocations: 20 kB / 494 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.6099, allocations: 305.2 kB / 494.3 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.6099, allocations: 0 / 494.3 MB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.872e-05/0.61, allocations: 8 kB / 494.3 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.61, allocations: 4 kB / 494.3 MB, free: 8.953 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007914/0.6108, allocations: 215.8 kB / 494.5 MB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.613, allocations: 0.8863 MB / 495.4 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008116/0.6139, allocations: 222.4 kB / 495.6 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-05/0.6139, allocations: 0 / 495.6 MB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008835/0.6148, allocations: 384.4 kB / 496 MB, free: 7.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.515e-06/0.6149, allocations: 0 / 496 MB, free: 7.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.002486/0.6174, allocations: 0.8888 MB / 496.9 MB, free: 6.207 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.6176, allocations: 170.2 kB / 497.1 MB, free: 6.004 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/0.6197, allocations: 0.8898 MB / 497.9 MB, free: 5.105 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/0.6199, allocations: 33.7 kB / 498 MB, free: 5.066 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.6201, allocations: 204.3 kB / 498.2 MB, free: 4.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.6203, allocations: 51.36 kB / 498.2 MB, free: 4.812 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.6204, allocations: 8 kB / 498.2 MB, free: 4.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6205, allocations: 327 kB / 498.6 MB, free: 4.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/0.6211, allocations: 116.5 kB / 498.7 MB, free: 4.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.6216, allocations: 167 kB / 498.8 MB, free: 4.188 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.6222, allocations: 230.7 kB / 499.1 MB, free: 3.938 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.6222, allocations: 0 / 499.1 MB, free: 3.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001621/0.6238, allocations: 0.5508 MB / 499.6 MB, free: 3.355 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001491/0.624, allocations: 134.8 kB / 499.7 MB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.624, allocations: 0 / 499.7 MB, free: 3.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.624, allocations: 4 kB / 499.7 MB, free: 3.195 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.6242, allocations: 15.98 kB / 499.8 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.6242, allocations: 8 kB / 499.8 MB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.6248, allocations: 39.81 kB / 499.8 MB, free: 3.133 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002069/0.625, allocations: 111.9 kB / 499.9 MB, free: 3.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,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,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,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 () * Number of clocked 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.001197/0.6262, allocations: 0.5415 MB / 0.4887 GB, free: 2.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002185/0.6264, allocations: 79.14 kB / 0.4888 GB, free: 2.371 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003986/0.6269, allocations: 130.4 kB / 0.4889 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.6269, allocations: 0 / 0.4889 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.6269, allocations: 0 / 0.4889 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.6269, allocations: 0 / 0.4889 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.6281, allocations: 0.6257 MB / 0.4895 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6281, allocations: 0 / 0.4895 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.815e-05/0.6282, allocations: 11.98 kB / 0.4896 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-06/0.6282, allocations: 4 kB / 0.4896 GB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.852e-05/0.6283, allocations: 23.98 kB / 0.4896 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.014e-06/0.6284, allocations: 8.125 kB / 0.4896 GB, free: 1.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6284, allocations: 4 kB / 0.4896 GB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.6303, allocations: 0.69 MB / 0.4903 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.6316, allocations: 0.4959 MB / 0.4907 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000178/0.6318, allocations: 20 kB / 0.4908 GB, free: 252 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004269/0.6322, allocations: 31.91 kB / 0.4908 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.6325, allocations: 55.94 kB / 0.4909 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/0.6328, allocations: 115.9 kB / 0.491 GB, free: 48 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.2679/0.9007, allocations: 0.727 MB / 0.4917 GB, free: 104.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.9007, allocations: 2.438 kB / 0.4917 GB, free: 104.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007599/0.9015, allocations: 84.72 kB / 0.4918 GB, free: 104.8 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) * Number of clocked states: 0 () * 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.002348/0.9039, allocations: 1.26 MB / 0.493 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.9053, allocations: 0.6532 MB / 0.4936 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.9054, allocations: 0 / 0.4936 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008052/0.9062, allocations: 0.5276 MB / 0.4941 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.9075, allocations: 171.2 kB / 0.4943 GB, free: 103.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00772/0.9152, allocations: 3.54 MB / 0.4978 GB, free: 101.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008092/0.9161, allocations: 0.9901 MB / 0.4987 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005489/0.9166, allocations: 148.3 kB / 0.4989 GB, free: 101.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.163e-06/0.9167, allocations: 0 / 0.4989 GB, free: 101.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.63/3.547, allocations: 6.449 MB / 0.5052 GB, free: 100.7 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat