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.001183/0.001184, allocations: 99.86 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001165, allocations: 208.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002877/0.0002877, allocations: 4 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1279, allocations: 51.48 MB / 358.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002896/0.1309, allocations: 1.738 MB / 359.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.1335, allocations: 1.01 MB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.1337, allocations: 0 / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.134, allocations: 27.78 kB / 361 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.1342, allocations: 47.84 kB / 361 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.1347, allocations: 91.77 kB / 361.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.1352, allocations: 211.6 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.1354, allocations: 81.59 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008826/0.1363, allocations: 0.6628 MB / 362 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.1366, allocations: 183.5 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.192e-05/0.1367, allocations: 8 kB / 362.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.985e-05/0.1368, allocations: 12 kB / 362.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.137, allocations: 143.5 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.1371, allocations: 141.3 kB / 362.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008454/0.138, allocations: 0.7913 MB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.138, allocations: 0 / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.138, allocations: 0 / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.988e-05/0.1381, allocations: 0 / 363.3 MB, free: 8.641 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.001717/0.1398, allocations: 0.9746 MB / 364.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.1398, allocations: 8.031 kB / 364.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.14, allocations: 54.48 kB / 364.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.1402, allocations: 90.95 kB / 364.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.1408, allocations: 403.5 kB / 364.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/0.1409, allocations: 15.94 kB / 364.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.895e-05/0.1409, allocations: 20 kB / 364.9 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.1416, allocations: 293.4 kB / 365.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.1416, allocations: 0 / 365.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.1417, allocations: 12 kB / 365.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.1417, allocations: 4 kB / 365.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.1422, allocations: 207.9 kB / 365.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.1438, allocations: 0.8863 MB / 366.3 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/0.1443, allocations: 222.4 kB / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.1444, allocations: 0 / 366.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005901/0.1449, allocations: 389 kB / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.145, allocations: 0 / 366.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001536/0.1465, allocations: 0.8999 MB / 367.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.1467, allocations: 178.2 kB / 367.9 MB, free: 3.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001513/0.1482, allocations: 1.008 MB / 368.9 MB, free: 2.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.1482, allocations: 37.64 kB / 369 MB, free: 2.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.1484, allocations: 145.9 kB / 369.1 MB, free: 2.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1485, allocations: 51.36 kB / 369.2 MB, free: 2.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.1485, allocations: 8 kB / 369.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1487, allocations: 338.9 kB / 369.5 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.149, allocations: 127.9 kB / 369.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.1493, allocations: 168.2 kB / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.1496, allocations: 222.7 kB / 370 MB, free: 1.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.1496, allocations: 0 / 370 MB, free: 1.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001037/0.1507, allocations: 0.5818 MB / 370.6 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.1508, allocations: 134.8 kB / 370.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.1509, allocations: 4 kB / 370.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1509, allocations: 4.062 kB / 370.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.151, allocations: 15.98 kB / 370.8 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.151, allocations: 4 kB / 370.8 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.1514, allocations: 39.81 kB / 370.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.1516, allocations: 107.9 kB / 370.9 MB, free: 0.5938 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.000747/0.1523, allocations: 0.5383 MB / 371.4 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2148/0.3671, allocations: 72.05 kB / 371.5 MB, free: 19.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003669/0.3675, allocations: 130.2 kB / 371.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.3675, allocations: 1 kB / 371.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.3676, allocations: 0.5312 kB / 371.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3676, allocations: 2.094 kB / 371.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001322/0.3689, allocations: 0.6227 MB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3689, allocations: 0 / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.447e-05/0.369, allocations: 15.91 kB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.369, allocations: 0.6875 kB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.706e-05/0.3691, allocations: 26.59 kB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.3691, allocations: 4.812 kB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.3691, allocations: 1 kB / 372.3 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.3704, allocations: 0.6993 MB / 373 MB, free: 19.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000809/0.3712, allocations: 0.4964 MB / 373.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001445/0.3714, allocations: 21.58 kB / 373.5 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.3717, allocations: 28.33 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.3719, allocations: 55.7 kB / 373.6 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/0.372, allocations: 118.4 kB / 373.7 MB, free: 18.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.3733, allocations: 0.7338 MB / 374.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3733, allocations: 1.125 kB / 374.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.3738, allocations: 89.38 kB / 374.5 MB, free: 18.75 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.001402/0.3752, allocations: 1.277 MB / 375.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008531/0.376, allocations: 0.6559 MB / 376.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.376, allocations: 1.375 kB / 376.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.3765, allocations: 0.5316 MB / 377 MB, free: 17.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.3773, allocations: 168.2 kB / 377.2 MB, free: 17.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005219/0.3825, allocations: 3.47 MB / 380.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/0.3831, allocations: 0.9763 MB / 381.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003955/0.3836, allocations: 171.3 kB / 381.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.3838, allocations: 136.1 kB / 381.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3838, allocations: 0 / 381.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.4075, allocations: 9.04 MB / 391 MB, free: 11.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.4077, allocations: 175.1 kB / 391.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.904/2.312, allocations: 0 / 391.1 MB, free: 10.98 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