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.001544/0.001548, allocations: 184.4 kB / 16.4 MB, free: 5.746 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.046/2.046, allocations: 205.4 MB / 222.5 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.001616/0.001616, allocations: 85.3 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005369/0.000537, allocations: 8 kB / 327 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.372, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00266/0.3747, allocations: 1.729 MB / 376.4 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003098/0.3778, allocations: 1.016 MB / 377.4 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.3781, allocations: 1.969 kB / 377.4 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.3782, allocations: 32.89 kB / 377.4 MB, free: 43.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001791/0.3784, allocations: 41.52 kB / 377.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004564/0.3789, allocations: 87.14 kB / 377.5 MB, free: 43.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.3793, allocations: 218.9 kB / 377.7 MB, free: 43.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.3796, allocations: 82.75 kB / 377.8 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001172/0.3808, allocations: 0.6566 MB / 378.5 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.3811, allocations: 185.1 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.3813, allocations: 12.7 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.3814, allocations: 14.06 kB / 378.7 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.3816, allocations: 146.5 kB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.3818, allocations: 140.7 kB / 379 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008587/0.3826, allocations: 0.7836 MB / 379.8 MB, free: 41.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3827, allocations: 0 / 379.8 MB, free: 41.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3827, allocations: 0 / 379.8 MB, free: 41.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.3827, allocations: 0 / 379.8 MB, free: 41.83 MB / 298.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.001366/0.3841, allocations: 0.9735 MB / 380.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3841, allocations: 8.812 kB / 380.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.3843, allocations: 56.27 kB / 380.8 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.3844, allocations: 79.53 kB / 380.9 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006451/0.3851, allocations: 408.3 kB / 381.3 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.3852, allocations: 20.11 kB / 381.3 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.3853, allocations: 18.66 kB / 381.3 MB, free: 40.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009661/0.3862, allocations: 299 kB / 381.6 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3863, allocations: 0 / 381.6 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.3864, allocations: 9.875 kB / 381.6 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.3864, allocations: 3 kB / 381.6 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007544/0.3871, allocations: 213.1 kB / 381.8 MB, free: 40.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.3892, allocations: 0.8815 MB / 382.7 MB, free: 39.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007664/0.39, allocations: 222.1 kB / 382.9 MB, free: 39.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.37e-05/0.3901, allocations: 1.25 kB / 382.9 MB, free: 39.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008201/0.3909, allocations: 380.9 kB / 383.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.866e-06/0.3909, allocations: 0 / 383.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.002434/0.3934, allocations: 0.9098 MB / 384.2 MB, free: 38.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.284e-05/0.3935, allocations: 175.5 kB / 384.4 MB, free: 38.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/0.3958, allocations: 1.007 MB / 385.4 MB, free: 37.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/0.396, allocations: 36.02 kB / 385.4 MB, free: 37.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.3961, allocations: 199.7 kB / 385.6 MB, free: 37.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.3963, allocations: 58.75 kB / 385.7 MB, free: 37.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.3963, allocations: 9.188 kB / 385.7 MB, free: 37.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.3964, allocations: 320.6 kB / 386 MB, free: 37.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.3969, allocations: 123.4 kB / 386.1 MB, free: 36.95 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/0.3974, allocations: 167.4 kB / 386.3 MB, free: 36.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004544/0.3978, allocations: 226.7 kB / 386.5 MB, free: 36.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3978, allocations: 0 / 386.5 MB, free: 36.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001404/0.3993, allocations: 0.5587 MB / 387 MB, free: 35.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.386e-05/0.3994, allocations: 139.8 kB / 387.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3994, allocations: 96 / 387.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.3994, allocations: 11.92 kB / 387.2 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.3996, allocations: 16.06 kB / 387.2 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3996, allocations: 0 / 387.2 MB, free: 35.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006124/0.4002, allocations: 47.7 kB / 387.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001517/0.4004, allocations: 120.7 kB / 387.4 MB, free: 35.6 MB / 298.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.0009415/0.4013, allocations: 0.522 MB / 387.9 MB, free: 35.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.4015, allocations: 79.06 kB / 388 MB, free: 34.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.4018, allocations: 130.4 kB / 388.1 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4018, allocations: 3.984 kB / 388.1 MB, free: 34.83 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.4018, allocations: 4 kB / 388.1 MB, free: 34.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4018, allocations: 0 / 388.1 MB, free: 34.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000902/0.4027, allocations: 0.6219 MB / 388.7 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4028, allocations: 7.922 kB / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.441e-05/0.4029, allocations: 8 kB / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.4029, allocations: 0 / 388.7 MB, free: 34.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-05/0.403, allocations: 31.98 kB / 388.8 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.403, allocations: 0 / 388.8 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.403, allocations: 0 / 388.8 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.4047, allocations: 0.7017 MB / 389.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/0.4057, allocations: 0.4958 MB / 390 MB, free: 32.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.4059, allocations: 23.94 kB / 390 MB, free: 32.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.4063, allocations: 31.88 kB / 390 MB, free: 32.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.4066, allocations: 55.94 kB / 390.1 MB, free: 32.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.4067, allocations: 119.9 kB / 390.2 MB, free: 32.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001459/0.4082, allocations: 0.725 MB / 390.9 MB, free: 31.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4082, allocations: 0 / 390.9 MB, free: 31.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007176/0.409, allocations: 84 kB / 391 MB, free: 31.81 MB / 298.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.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,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.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,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.00203/0.411, allocations: 1.293 MB / 392.3 MB, free: 30.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.4124, allocations: 0.6501 MB / 393 MB, free: 29.77 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4124, allocations: 0 / 393 MB, free: 29.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007552/0.4132, allocations: 0.5326 MB / 393.5 MB, free: 29.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.4144, allocations: 174.1 kB / 393.7 MB, free: 29.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007176/0.4216, allocations: 3.54 MB / 397.2 MB, free: 25.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.4224, allocations: 0.9795 MB / 398.2 MB, free: 24.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004527/0.4228, allocations: 151.2 kB / 398.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4228, allocations: 0 / 398.3 MB, free: 24.25 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.153, allocations: 6.395 MB / 404.7 MB, free: 17.81 MB / 298.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