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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009433/0.0009434, allocations: 97.17 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009401/0.0009402, allocations: 183 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004379/0.0004379, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09065, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002163/0.09286, allocations: 1.738 MB / 330.2 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001954/0.09483, allocations: 1.011 MB / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.253e-05/0.09492, allocations: 11.88 kB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.09505, allocations: 19.84 kB / 331.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.09516, allocations: 51.8 kB / 331.3 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.09545, allocations: 79.83 kB / 331.3 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002675/0.09572, allocations: 207.6 kB / 331.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.0959, allocations: 93.59 kB / 331.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006775/0.09658, allocations: 0.6628 MB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.09682, allocations: 179.5 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.97e-05/0.09688, allocations: 12 kB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.685e-05/0.09693, allocations: 8 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.09708, allocations: 147.5 kB / 332.6 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.0972, allocations: 141.3 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006826/0.09789, allocations: 0.7912 MB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.0979, allocations: 3.938 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.09791, allocations: 0 / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.09792, allocations: 4 kB / 333.6 MB, free: 14.83 MB / 286.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.0009572/0.09888, allocations: 0.9629 MB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.09893, allocations: 8.031 kB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.87e-05/0.09901, allocations: 62.48 kB / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.09912, allocations: 79.06 kB / 334.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/0.09966, allocations: 403.4 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.0997, allocations: 16 kB / 335.1 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/0.09976, allocations: 23.98 kB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.1003, allocations: 297.2 kB / 335.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.1003, allocations: 0 / 335.4 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.1004, allocations: 8 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.1004, allocations: 4 kB / 335.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004345/0.1008, allocations: 211.8 kB / 335.6 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.1021, allocations: 0.8865 MB / 336.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.1026, allocations: 222.4 kB / 336.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.1026, allocations: 4 kB / 336.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000583/0.1032, allocations: 385.8 kB / 337.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1032, allocations: 0 / 337.1 MB, free: 11.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001343/0.1046, allocations: 0.8965 MB / 338 MB, free: 10.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.1047, allocations: 174.4 kB / 338.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.106, allocations: 1.008 MB / 339.2 MB, free: 8.875 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.106, allocations: 37.7 kB / 339.2 MB, free: 8.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.1062, allocations: 149.8 kB / 339.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.1063, allocations: 59.38 kB / 339.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.1063, allocations: 11.94 kB / 339.4 MB, free: 8.613 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.1065, allocations: 334.8 kB / 339.8 MB, free: 8.277 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.1067, allocations: 123.9 kB / 339.9 MB, free: 8.156 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.107, allocations: 164.2 kB / 340 MB, free: 7.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.1073, allocations: 222.8 kB / 340.2 MB, free: 7.738 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1073, allocations: 0 / 340.2 MB, free: 7.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008854/0.1082, allocations: 0.5857 MB / 340.8 MB, free: 7.121 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/0.1083, allocations: 134.8 kB / 341 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1083, allocations: 0 / 341 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1083, allocations: 4 kB / 341 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.162e-05/0.1084, allocations: 19.98 kB / 341 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1085, allocations: 4 kB / 341 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.1087, allocations: 36.05 kB / 341 MB, free: 6.902 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.1089, allocations: 115.9 kB / 341.1 MB, free: 6.789 MB / 286.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.0006247/0.1095, allocations: 0.5415 MB / 341.7 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.6e-05/0.1096, allocations: 75.06 kB / 341.8 MB, free: 6.137 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002301/0.1098, allocations: 130.4 kB / 341.9 MB, free: 6 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1098, allocations: 0 / 341.9 MB, free: 6 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1098, allocations: 0 / 341.9 MB, free: 6 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1099, allocations: 3.984 kB / 341.9 MB, free: 5.996 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006848/0.1105, allocations: 0.6258 MB / 342.5 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1106, allocations: 0 / 342.5 MB, free: 5.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.226e-05/0.1106, allocations: 15.98 kB / 342.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1106, allocations: 0 / 342.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.686e-05/0.1107, allocations: 27.98 kB / 342.6 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1107, allocations: 4 kB / 342.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1107, allocations: 0 / 342.6 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.1117, allocations: 0.7055 MB / 343.3 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006568/0.1124, allocations: 499.6 kB / 343.8 MB, free: 4.016 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.794e-05/0.1125, allocations: 20 kB / 343.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.1127, allocations: 27.97 kB / 343.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.1128, allocations: 59.94 kB / 343.9 MB, free: 3.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.113, allocations: 119.8 kB / 344 MB, free: 3.793 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009173/0.1139, allocations: 0.7289 MB / 344.7 MB, free: 3.066 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1139, allocations: 0 / 344.7 MB, free: 3.066 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003371/0.1142, allocations: 91.84 kB / 344.8 MB, free: 2.977 MB / 286.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.001447/0.1157, allocations: 1.277 MB / 346.1 MB, free: 1.645 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008645/0.1166, allocations: 0.6577 MB / 346.7 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1166, allocations: 3.938 kB / 346.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005352/0.1171, allocations: 0.5327 MB / 347.3 MB, free: 360 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006605/0.1178, allocations: 163.3 kB / 347.4 MB, free: 200 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.1223, allocations: 3.451 MB / 350.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006312/0.123, allocations: 0.9835 MB / 351.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002951/0.1233, allocations: 161.1 kB / 352 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/0.1235, allocations: 131.3 kB / 352.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1235, allocations: 0 / 352.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.1432, allocations: 9.05 MB / 361.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001878/0.1434, allocations: 178.6 kB / 361.4 MB, free: 2.043 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.064, allocations: 0 / 361.4 MB, free: 2.043 MB / 302.1 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) Environment - environmentSimulation: 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