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.001117/0.001117, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001069, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 65.38 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09298, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003664/0.09669, allocations: 2.165 MB / 359 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.099, allocations: 1.084 MB / 360.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001592/0.09918, allocations: 0 / 360.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.09941, allocations: 27.78 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.09955, allocations: 43.64 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.09996, allocations: 115.8 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.1004, allocations: 339.1 kB / 360.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1006, allocations: 111 kB / 360.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009105/0.1015, allocations: 0.9163 MB / 361.7 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1018, allocations: 179.2 kB / 361.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.288e-05/0.1019, allocations: 16 kB / 361.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.628e-05/0.102, allocations: 12 kB / 361.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.1021, allocations: 151.4 kB / 362 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.1024, allocations: 270 kB / 362.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008131/0.1032, allocations: 0.9385 MB / 363.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1032, allocations: 0 / 363.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1033, allocations: 4 kB / 363.2 MB, free: 8.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.1033, allocations: 0 / 363.2 MB, free: 8.031 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.001595/0.1049, allocations: 1.117 MB / 364.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.1049, allocations: 12.03 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.607e-05/0.105, allocations: 54.67 kB / 364.4 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.1052, allocations: 80 kB / 364.5 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004674/0.1057, allocations: 428 kB / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.126e-05/0.1057, allocations: 24.38 kB / 364.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.323e-05/0.1058, allocations: 20.38 kB / 364.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006019/0.1064, allocations: 309.3 kB / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1064, allocations: 4 kB / 365.3 MB, free: 5.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.1065, allocations: 8 kB / 365.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.1065, allocations: 4 kB / 365.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.1069, allocations: 203.9 kB / 365.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.1083, allocations: 0.8862 MB / 366.4 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.1088, allocations: 218.5 kB / 366.6 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.1091, allocations: 152.8 kB / 366.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1091, allocations: 4 kB / 366.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006038/0.1097, allocations: 401.2 kB / 367.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1098, allocations: 0 / 367.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001394/0.1112, allocations: 0.7297 MB / 367.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1113, allocations: 178.1 kB / 368 MB, free: 2.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/0.1126, allocations: 1 MB / 369 MB, free: 1.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.1127, allocations: 37.7 kB / 369 MB, free: 1.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1128, allocations: 157.8 kB / 369.2 MB, free: 1.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.821e-05/0.1129, allocations: 59.25 kB / 369.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/0.1131, allocations: 161.1 kB / 369.4 MB, free: 1.512 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1133, allocations: 342.8 kB / 369.8 MB, free: 1.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.1136, allocations: 127.9 kB / 369.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.1139, allocations: 164.2 kB / 370 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005791/0.1145, allocations: 477.8 kB / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1145, allocations: 0 / 370.5 MB, free: 344 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.1592/0.2737, allocations: 0.5793 MB / 371.1 MB, free: 20.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.973e-05/0.2739, allocations: 135.2 kB / 371.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2739, allocations: 1.406 kB / 371.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.2739, allocations: 2.406 kB / 371.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.274, allocations: 15.52 kB / 371.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.274, allocations: 8.047 kB / 371.2 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.2744, allocations: 32.88 kB / 371.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.2745, allocations: 111.1 kB / 371.4 MB, free: 20.03 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.0006514/0.2752, allocations: 0.5343 MB / 371.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.2753, allocations: 79.19 kB / 372 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.2755, allocations: 131.2 kB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2755, allocations: 1.094 kB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2755, allocations: 1.25 kB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2755, allocations: 1.141 kB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007208/0.2762, allocations: 0.6268 MB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2762, allocations: 0.5156 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.615e-05/0.2763, allocations: 11.73 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2763, allocations: 1.5 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.2764, allocations: 28.98 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2764, allocations: 1.75 kB / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2764, allocations: 0 / 372.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.2775, allocations: 0.703 MB / 373.5 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005933/0.2781, allocations: 0.4927 MB / 374 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.2782, allocations: 25.94 kB / 374 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.2784, allocations: 22.3 kB / 374 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.2786, allocations: 50.95 kB / 374.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001807/0.2788, allocations: 116.6 kB / 374.2 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008915/0.2797, allocations: 0.735 MB / 374.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2797, allocations: 0 / 374.9 MB, free: 18.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.2801, allocations: 93.92 kB / 375 MB, free: 18.55 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.001197/0.2813, allocations: 1.276 MB / 376.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007655/0.2821, allocations: 0.6583 MB / 377 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2821, allocations: 0 / 377 MB, free: 17.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004496/0.2825, allocations: 0.5351 MB / 377.5 MB, free: 16.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.2833, allocations: 185.5 kB / 377.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.2887, allocations: 4.647 MB / 382.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/0.2892, allocations: 0.9705 MB / 383.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002916/0.2895, allocations: 163.4 kB / 383.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.2897, allocations: 129.9 kB / 383.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2897, allocations: 0 / 383.6 MB, free: 12.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.3102, allocations: 9.705 MB / 393.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.3104, allocations: 201.8 kB / 393.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.115, allocations: 0 / 393.5 MB, free: 9.395 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