Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002408/0.002408, allocations: 211.1 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 257.5 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 52 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2749, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003479/0.2783, allocations: 2.014 MB / 433.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.2807, allocations: 1.002 MB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.2809, allocations: 7.938 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.2811, allocations: 35.64 kB / 434.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.2812, allocations: 63.52 kB / 434.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.2816, allocations: 131.8 kB / 434.3 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004771/0.2821, allocations: 395.1 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.2823, allocations: 81.2 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.2834, allocations: 0.963 MB / 435.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.2837, allocations: 211.2 kB / 436 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.638e-05/0.2837, allocations: 32 kB / 436 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.008e-05/0.2838, allocations: 36 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.284, allocations: 163.4 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002303/0.2842, allocations: 202.5 kB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.2852, allocations: 0.9845 MB / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2852, allocations: 0 / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2852, allocations: 0 / 437.4 MB, free: 340 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.2853, allocations: 0 / 437.4 MB, free: 340 kB / 334.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.001302/0.2866, allocations: 1.073 MB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2866, allocations: 8.031 kB / 438.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.933e-05/0.2867, allocations: 58.67 kB / 438.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.2868, allocations: 84.42 kB / 438.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/0.2874, allocations: 371 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.2874, allocations: 24.36 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.388e-05/0.2875, allocations: 16.38 kB / 439 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.2883, allocations: 434.1 kB / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2883, allocations: 0 / 439.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/0.2884, allocations: 8 kB / 439.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.2884, allocations: 4 kB / 439.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000545/0.289, allocations: 338.7 kB / 439.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.2904, allocations: 0.7918 MB / 440.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.291, allocations: 301.2 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003512/0.2913, allocations: 255.6 kB / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.2913, allocations: 0 / 441.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007067/0.292, allocations: 0.5046 MB / 441.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.292, allocations: 0 / 441.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001634/0.2937, allocations: 1.003 MB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.2938, allocations: 182.2 kB / 442.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.2952, allocations: 0.9961 MB / 443.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.97e-05/0.2953, allocations: 37.7 kB / 443.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.2954, allocations: 153.9 kB / 444 MB, free: 9.277 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.994e-05/0.2955, allocations: 63.56 kB / 444 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.2957, allocations: 169.3 kB / 444.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2958, allocations: 330.8 kB / 444.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003592/0.2962, allocations: 250.8 kB / 444.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003831/0.2966, allocations: 299.8 kB / 445 MB, free: 8.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000663/0.2972, allocations: 497.8 kB / 445.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.2972, allocations: 11.94 kB / 445.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001201/0.2984, allocations: 0.7215 MB / 446.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.2986, allocations: 146.8 kB / 446.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2986, allocations: 0 / 446.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.2986, allocations: 4 kB / 446.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.752e-05/0.2987, allocations: 11.98 kB / 446.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.2987, allocations: 11.88 kB / 446.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.2989, allocations: 23.92 kB / 446.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.299, allocations: 111.9 kB / 446.6 MB, free: 6.441 MB / 350.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.00076/0.2998, allocations: 0.5341 MB / 447.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.2999, allocations: 87.42 kB / 447.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002041/0.3001, allocations: 130.5 kB / 447.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3001, allocations: 0 / 447.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.3001, allocations: 4 kB / 447.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3001, allocations: 0 / 447.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006828/0.3008, allocations: 0.5197 MB / 447.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3008, allocations: 0 / 447.8 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.653e-05/0.3009, allocations: 12 kB / 447.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.3009, allocations: 7.938 kB / 447.9 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.813e-05/0.3009, allocations: 35.89 kB / 447.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3009, allocations: 0 / 447.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3009, allocations: 0 / 447.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001303/0.3022, allocations: 0.8375 MB / 448.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008629/0.3031, allocations: 0.493 MB / 449.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.3032, allocations: 27.94 kB / 449.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.3034, allocations: 15.98 kB / 449.3 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.3035, allocations: 51.95 kB / 449.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.3037, allocations: 111.9 kB / 449.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00111/0.3048, allocations: 0.7328 MB / 450.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3048, allocations: 4 kB / 450.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.3051, allocations: 91.89 kB / 450.3 MB, free: 2.609 MB / 350.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.001638/0.3068, allocations: 1.414 MB / 451.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.3079, allocations: 0.827 MB / 452.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3079, allocations: 0 / 452.5 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006001/0.3085, allocations: 0.5161 MB / 453 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000948/0.3095, allocations: 207.8 kB / 453.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007015/0.3165, allocations: 5.213 MB / 458.4 MB, free: 9.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.3171, allocations: 369.3 kB / 458.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003634/0.3175, allocations: 161.1 kB / 458.9 MB, free: 9.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002434/0.3177, allocations: 135.3 kB / 459.1 MB, free: 9.266 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3177, allocations: 4 kB / 459.1 MB, free: 9.262 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04139/0.3591, allocations: 11.53 MB / 470.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.42, allocations: 9.234 kB / 470.6 MB, free: 13.92 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.89166557000135]