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.001081/0.00108, allocations: 180 kB / 17.01 MB, free: 5.125 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.444/1.444, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009265/0.0009264, allocations: 97.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002658, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.261, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1022/0.3633, allocations: 83.32 MB / 459.2 MB, free: 13.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.3636, allocations: 79.95 kB / 459.3 MB, free: 13.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06702/0.4306, allocations: 34.39 MB / 493.7 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4307, allocations: 0 / 493.7 MB, free: 10.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.707e-05/0.4307, allocations: 19.94 kB / 493.7 MB, free: 10.86 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.001639/0.4324, allocations: 0.9911 MB / 494.7 MB, free: 9.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4324, allocations: 12.03 kB / 494.7 MB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.4326, allocations: 50.55 kB / 494.8 MB, free: 9.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.4328, allocations: 79.06 kB / 494.8 MB, free: 9.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006681/0.4334, allocations: 411.5 kB / 495.2 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.4335, allocations: 16 kB / 495.3 MB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.347e-05/0.4336, allocations: 20 kB / 495.3 MB, free: 9.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006252/0.4342, allocations: 297.2 kB / 495.6 MB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.4342, allocations: 4 kB / 495.6 MB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.376e-05/0.4343, allocations: 12 kB / 495.6 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.4343, allocations: 4 kB / 495.6 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004649/0.4348, allocations: 211.8 kB / 495.8 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.4364, allocations: 0.8902 MB / 496.7 MB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/0.4369, allocations: 214.5 kB / 496.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.4369, allocations: 0 / 496.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005624/0.4375, allocations: 388.4 kB / 497.3 MB, free: 7.066 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.026e-06/0.4375, allocations: 0 / 497.3 MB, free: 7.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001421/0.4389, allocations: 0.881 MB / 498.2 MB, free: 6.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.4391, allocations: 170.2 kB / 498.3 MB, free: 5.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.4405, allocations: 0.8859 MB / 499.2 MB, free: 5.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.4406, allocations: 37.7 kB / 499.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.4407, allocations: 145.9 kB / 499.4 MB, free: 4.828 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.4408, allocations: 55.34 kB / 499.4 MB, free: 4.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.4408, allocations: 12 kB / 499.5 MB, free: 4.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.441, allocations: 342.9 kB / 499.8 MB, free: 4.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.4412, allocations: 120.4 kB / 499.9 MB, free: 4.301 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.4415, allocations: 160.2 kB / 0.4883 GB, free: 4.129 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.4419, allocations: 229.3 kB / 0.4886 GB, free: 3.883 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4419, allocations: 4.094 kB / 0.4886 GB, free: 3.879 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009625/0.4428, allocations: 0.5701 MB / 0.4891 GB, free: 3.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.443, allocations: 134.8 kB / 0.4893 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.443, allocations: 0 / 0.4893 GB, free: 3.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.443, allocations: 4.031 kB / 0.4893 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.761e-05/0.4431, allocations: 15.94 kB / 0.4893 GB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.4431, allocations: 4 kB / 0.4893 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.4434, allocations: 39.81 kB / 0.4893 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4436, allocations: 119.9 kB / 0.4894 GB, free: 2.941 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.0007274/0.4443, allocations: 0.5258 MB / 0.4899 GB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4445, allocations: 75.16 kB / 0.49 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002838/0.4447, allocations: 130.4 kB / 0.4901 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4448, allocations: 4 kB / 0.4901 GB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.4448, allocations: 4 kB / 0.4901 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.4448, allocations: 0 / 0.4901 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008869/0.4457, allocations: 0.6335 MB / 0.4908 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4457, allocations: 0 / 0.4908 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.856e-05/0.4457, allocations: 8 kB / 0.4908 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.4458, allocations: 0 / 0.4908 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.4458, allocations: 23.98 kB / 0.4908 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4458, allocations: 128 / 0.4908 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.4458, allocations: 4 kB / 0.4908 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.4469, allocations: 0.6939 MB / 0.4915 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/0.4478, allocations: 0.4996 MB / 0.492 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.4479, allocations: 20 kB / 0.492 GB, free: 180 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.4481, allocations: 19.98 kB / 0.492 GB, free: 160 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4483, allocations: 59.92 kB / 0.4921 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.2263/0.6746, allocations: 115.2 kB / 0.4922 GB, free: 105.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001564/0.6763, allocations: 0.7226 MB / 0.4929 GB, free: 105.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6763, allocations: 0.5625 kB / 0.4929 GB, free: 105.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000705/0.677, allocations: 87.53 kB / 0.493 GB, free: 105.1 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.001887/0.6789, allocations: 1.271 MB / 0.4942 GB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001015/0.6799, allocations: 0.649 MB / 0.4948 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.6799, allocations: 1.031 kB / 0.4948 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005419/0.6805, allocations: 0.5405 MB / 0.4954 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007572/0.6813, allocations: 168.2 kB / 0.4955 GB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005332/0.6866, allocations: 3.464 MB / 0.4989 GB, free: 102.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005973/0.6872, allocations: 0.9817 MB / 0.4999 GB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004228/0.6877, allocations: 156.1 kB / 0.5 GB, free: 101.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.6879, allocations: 128.4 kB / 0.5001 GB, free: 101.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6879, allocations: 0 / 0.5001 GB, free: 101.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.7107, allocations: 9.139 MB / 0.5091 GB, free: 100.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/0.7109, allocations: 179.7 kB / 0.5092 GB, free: 100.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.671, allocations: 0 / 0.5092 GB, free: 100.3 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