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.001404/0.001404, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 60.12 kB / 306.5 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.0955, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003285/0.09881, allocations: 2.177 MB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1009, allocations: 1.041 MB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.101, allocations: 0 / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.1013, allocations: 31.72 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.1014, allocations: 43.66 kB / 360.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.1018, allocations: 107.9 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004686/0.1022, allocations: 415.1 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.1025, allocations: 107 kB / 361 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008421/0.1033, allocations: 0.9435 MB / 361.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.1036, allocations: 195.2 kB / 362.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.915e-05/0.1037, allocations: 36 kB / 362.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.312e-05/0.1037, allocations: 36 kB / 362.2 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.1039, allocations: 163.3 kB / 362.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002572/0.1041, allocations: 286.1 kB / 362.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007449/0.1049, allocations: 0.962 MB / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1049, allocations: 0 / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1049, allocations: 0 / 363.6 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.1049, allocations: 4 kB / 363.6 MB, free: 7.781 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.001335/0.1063, allocations: 1.115 MB / 364.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1063, allocations: 11.97 kB / 364.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.624e-05/0.1064, allocations: 58.73 kB / 364.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.1066, allocations: 80 kB / 364.9 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004943/0.1071, allocations: 428 kB / 365.3 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.1071, allocations: 24.25 kB / 365.3 MB, free: 5.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.1072, allocations: 20.38 kB / 365.3 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006242/0.1078, allocations: 305.3 kB / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1078, allocations: 0 / 365.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1079, allocations: 8 kB / 365.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.1079, allocations: 4 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00046/0.1084, allocations: 207.9 kB / 365.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.1097, allocations: 0.8901 MB / 366.7 MB, free: 4.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.1102, allocations: 214.5 kB / 366.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.1105, allocations: 164.8 kB / 367.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1106, allocations: 4 kB / 367.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006163/0.1112, allocations: 381.8 kB / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.1112, allocations: 0 / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00139/0.1126, allocations: 0.7389 MB / 368.2 MB, free: 2.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.1127, allocations: 178.2 kB / 368.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001554/0.1143, allocations: 1 MB / 369.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.521e-05/0.1144, allocations: 37.7 kB / 369.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.1145, allocations: 149.8 kB / 369.6 MB, free: 1.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.1147, allocations: 59.2 kB / 369.6 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003277/0.115, allocations: 165.1 kB / 369.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1152, allocations: 338.8 kB / 370.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.1155, allocations: 120 kB / 370.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.1158, allocations: 168.2 kB / 370.4 MB, free: 0.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006614/0.1165, allocations: 469.8 kB / 370.9 MB, free: 104 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1165, allocations: 7.938 kB / 370.9 MB, free: 96 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.1718/0.2883, allocations: 0.5757 MB / 371.4 MB, free: 20.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.342e-05/0.2884, allocations: 134.7 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.2884, allocations: 3.875 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.2885, allocations: 3.016 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.593e-05/0.2886, allocations: 16.39 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.2886, allocations: 1.656 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.2889, allocations: 33.25 kB / 371.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.2891, allocations: 111.5 kB / 371.7 MB, free: 20.02 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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006291/0.2897, allocations: 0.5445 MB / 372.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.2898, allocations: 78.5 kB / 372.4 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.2901, allocations: 126.3 kB / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.2901, allocations: 4.562 kB / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2901, allocations: 4 kB / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2901, allocations: 3.281 kB / 372.5 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007407/0.2908, allocations: 0.6273 MB / 373.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2908, allocations: 1.812 kB / 373.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-05/0.2909, allocations: 9.875 kB / 373.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.2909, allocations: 1.031 kB / 373.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.291, allocations: 26.73 kB / 373.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.291, allocations: 2.875 kB / 373.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.291, allocations: 3.828 kB / 373.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2922, allocations: 0.7101 MB / 373.9 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00066/0.2929, allocations: 499.6 kB / 374.4 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001098/0.293, allocations: 24.88 kB / 374.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/0.2932, allocations: 27.22 kB / 374.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.2934, allocations: 53.25 kB / 374.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.2935, allocations: 114.8 kB / 374.6 MB, free: 18.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.2946, allocations: 0.7283 MB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2946, allocations: 1.375 kB / 375.3 MB, free: 18.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004845/0.2951, allocations: 90.67 kB / 375.4 MB, free: 18.48 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00144/0.2965, allocations: 1.281 MB / 376.7 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008542/0.2974, allocations: 0.6641 MB / 377.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2974, allocations: 0 / 377.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004667/0.2979, allocations: 0.5252 MB / 377.9 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008752/0.2987, allocations: 210.1 kB / 378.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006249/0.305, allocations: 4.664 MB / 382.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.3057, allocations: 0.9581 MB / 383.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004567/0.3061, allocations: 167.7 kB / 383.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002309/0.3064, allocations: 134.2 kB / 384 MB, free: 12.77 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3064, allocations: 0 / 384 MB, free: 12.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02431/0.3307, allocations: 10.02 MB / 394 MB, free: 9.367 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001272/0.3308, allocations: 207.5 kB / 394.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.004/2.334, allocations: 3.938 kB / 394.2 MB, free: 9.102 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/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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches