Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002544/0.0002545, allocations: 4 kB / 306.8 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1133, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002276/0.1156, allocations: 1.745 MB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00212/0.1177, allocations: 1.002 MB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1179, allocations: 4 kB / 361.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.118, allocations: 23.78 kB / 361.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.1182, allocations: 39.64 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.1186, allocations: 79.91 kB / 361.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.119, allocations: 327 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.1192, allocations: 85.59 kB / 361.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000862/0.1201, allocations: 0.7838 MB / 362.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.1203, allocations: 183.4 kB / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.1203, allocations: 8 kB / 362.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.1204, allocations: 12 kB / 362.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.1206, allocations: 143.5 kB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.1208, allocations: 141.3 kB / 362.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008776/0.1217, allocations: 0.799 MB / 363.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1217, allocations: 0 / 363.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1217, allocations: 3.938 kB / 363.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1218, allocations: 0 / 363.7 MB, free: 8.609 MB / 302.1 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.001316/0.1231, allocations: 0.9668 MB / 364.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1231, allocations: 8.031 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.651e-05/0.1232, allocations: 54.55 kB / 364.7 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.1233, allocations: 86.97 kB / 364.8 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.1239, allocations: 403.5 kB / 365.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.9e-05/0.1239, allocations: 16 kB / 365.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.83e-05/0.124, allocations: 16 kB / 365.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006261/0.1246, allocations: 297.4 kB / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1246, allocations: 0 / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/0.1247, allocations: 8 kB / 365.5 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1247, allocations: 4 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.1252, allocations: 215.8 kB / 365.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001446/0.1266, allocations: 0.8902 MB / 366.6 MB, free: 5.484 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/0.1271, allocations: 218.5 kB / 366.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.1274, allocations: 152.8 kB / 367 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.1274, allocations: 4 kB / 367 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006185/0.128, allocations: 397.2 kB / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.465e-06/0.128, allocations: 0 / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001269/0.1293, allocations: 0.7259 MB / 368.1 MB, free: 3.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.593e-05/0.1294, allocations: 182.4 kB / 368.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.1309, allocations: 1.004 MB / 369.3 MB, free: 2.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.1309, allocations: 37.7 kB / 369.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.1311, allocations: 145.9 kB / 369.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.443e-05/0.1311, allocations: 55.34 kB / 369.5 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.1312, allocations: 8 kB / 369.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1313, allocations: 338.8 kB / 369.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.1317, allocations: 120 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.132, allocations: 176.2 kB / 370.1 MB, free: 1.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.1323, allocations: 226.7 kB / 370.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1323, allocations: 0 / 370.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009404/0.1332, allocations: 0.5819 MB / 370.9 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.1334, allocations: 130.8 kB / 371.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1334, allocations: 4 kB / 371.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1334, allocations: 4.062 kB / 371.1 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.863e-05/0.1335, allocations: 19.92 kB / 371.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1335, allocations: 0 / 371.1 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/0.1338, allocations: 47.77 kB / 371.1 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.134, allocations: 107.9 kB / 371.2 MB, free: 0.6055 MB / 302.1 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.0007501/0.1347, allocations: 0.5309 MB / 371.8 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1726/0.3073, allocations: 72.58 kB / 371.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003261/0.3077, allocations: 130 kB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3077, allocations: 1.531 kB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3077, allocations: 0.9375 kB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3077, allocations: 0.8438 kB / 372 MB, free: 19.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009571/0.3087, allocations: 0.6282 MB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3087, allocations: 2.344 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.225e-05/0.3087, allocations: 10.7 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3088, allocations: 1.375 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.438e-05/0.3088, allocations: 26.02 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.3089, allocations: 2.562 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3089, allocations: 0.7188 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.31, allocations: 0.7039 MB / 373.3 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000677/0.3107, allocations: 498.8 kB / 373.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.3109, allocations: 22.88 kB / 373.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.3111, allocations: 26.09 kB / 373.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3113, allocations: 57.34 kB / 373.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.3114, allocations: 116.6 kB / 374 MB, free: 19.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.3126, allocations: 0.7381 MB / 374.8 MB, free: 18.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3126, allocations: 0 / 374.8 MB, free: 18.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004441/0.313, allocations: 89.91 kB / 374.9 MB, free: 18.97 MB / 302.1 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.001358/0.3144, allocations: 1.279 MB / 376.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007904/0.3152, allocations: 0.653 MB / 376.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3152, allocations: 0 / 376.8 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000441/0.3156, allocations: 0.5329 MB / 377.3 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.3164, allocations: 181.2 kB / 377.5 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004933/0.3213, allocations: 3.11 MB / 380.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.3219, allocations: 0.9704 MB / 381.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003263/0.3222, allocations: 159.1 kB / 381.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.3225, allocations: 128.2 kB / 381.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3225, allocations: 0 / 381.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02502/0.3475, allocations: 9.064 MB / 390.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/0.3477, allocations: 185.6 kB / 391.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.34, allocations: 3.828 kB / 391.1 MB, free: 11.62 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat