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.001565/0.001565, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001936/0.001936, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001538/0.001538, allocations: 47.92 kB / 373 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09889, allocations: 53.32 MB / 426.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.0034/0.1023, allocations: 2.132 MB / 428.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.1046, allocations: 1.056 MB / 429.5 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.468e-05/0.1047, allocations: 7.938 kB / 429.5 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.1048, allocations: 39.64 kB / 429.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.105, allocations: 55.5 kB / 429.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.1054, allocations: 126.4 kB / 429.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004881/0.1058, allocations: 391.1 kB / 430.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.106, allocations: 83.09 kB / 430.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1908/0.2968, allocations: 0.9602 MB / 431.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.2972, allocations: 202.3 kB / 431.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.2973, allocations: 33.06 kB / 431.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.023e-05/0.2974, allocations: 40.81 kB / 431.4 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.2976, allocations: 164.8 kB / 431.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.2978, allocations: 287.4 kB / 431.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008368/0.2986, allocations: 0.976 MB / 432.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2986, allocations: 0.5 kB / 432.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2986, allocations: 2 kB / 432.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.2986, allocations: 0.8438 kB / 432.8 MB, free: 7.949 MB / 350.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.001/0.2996, allocations: 1.146 MB / 434 MB, free: 7.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2997, allocations: 13.38 kB / 434 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.787e-05/0.2997, allocations: 54.84 kB / 434 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.2999, allocations: 84.02 kB / 434.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.3002, allocations: 432.1 kB / 434.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.3003, allocations: 14.78 kB / 434.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.3003, allocations: 18.03 kB / 434.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000583/0.3009, allocations: 307.9 kB / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3009, allocations: 0 / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.316e-05/0.301, allocations: 9.484 kB / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.301, allocations: 5.312 kB / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.3014, allocations: 212.9 kB / 435.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001208/0.3026, allocations: 0.8951 MB / 436 MB, free: 6.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.303, allocations: 178.4 kB / 436.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.3033, allocations: 116.7 kB / 436.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.3033, allocations: 1.062 kB / 436.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006006/0.3039, allocations: 392.2 kB / 436.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.3039, allocations: 0 / 436.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001337/0.3053, allocations: 0.7442 MB / 437.4 MB, free: 5.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.3053, allocations: 174.7 kB / 437.6 MB, free: 5.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.3066, allocations: 0.9975 MB / 438.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.3066, allocations: 36.5 kB / 438.6 MB, free: 5.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.858e-05/0.3067, allocations: 155.8 kB / 438.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.854e-05/0.3068, allocations: 61.45 kB / 438.8 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.307, allocations: 170.6 kB / 439 MB, free: 5.172 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.069e-05/0.307, allocations: 336.2 kB / 439.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.3073, allocations: 121.1 kB / 439.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.3076, allocations: 165.7 kB / 439.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.3081, allocations: 478.8 kB / 440.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3081, allocations: 0 / 440.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008955/0.309, allocations: 0.5807 MB / 440.7 MB, free: 4.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.675e-05/0.309, allocations: 133.2 kB / 440.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.309, allocations: 1.312 kB / 440.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.543e-05/0.3091, allocations: 7.016 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.151e-05/0.3092, allocations: 19.55 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.3092, allocations: 2.766 kB / 440.8 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.3094, allocations: 24.5 kB / 440.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.3095, allocations: 115.3 kB / 441 MB, free: 3.891 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.0005644/0.3101, allocations: 0.5326 MB / 441.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.3102, allocations: 83.09 kB / 441.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000211/0.3104, allocations: 130.4 kB / 441.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3104, allocations: 4.297 kB / 441.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3104, allocations: 1.156 kB / 441.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3104, allocations: 1.078 kB / 441.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008574/0.3113, allocations: 0.6329 MB / 442.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3113, allocations: 0 / 442.3 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.346e-05/0.3113, allocations: 14.72 kB / 442.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.3114, allocations: 1.656 kB / 442.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.997e-05/0.3114, allocations: 23.47 kB / 442.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.3114, allocations: 1.188 kB / 442.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3114, allocations: 5.188 kB / 442.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.3125, allocations: 0.7095 MB / 443.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005937/0.3131, allocations: 0.498 MB / 443.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.3132, allocations: 22.33 kB / 443.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.3133, allocations: 16.53 kB / 443.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.3135, allocations: 50.56 kB / 443.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.3136, allocations: 113.6 kB / 443.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009214/0.3145, allocations: 0.7289 MB / 444.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3145, allocations: 0 / 444.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.3149, allocations: 86.91 kB / 444.6 MB, free: 1.852 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.001252/0.3162, allocations: 1.294 MB / 445.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007478/0.3169, allocations: 0.5358 MB / 446.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3169, allocations: 1.188 kB / 446.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004029/0.3173, allocations: 393.3 kB / 446.8 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008531/0.3182, allocations: 205.7 kB / 447 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006694/0.3249, allocations: 4.539 MB / 451.6 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008836/0.3257, allocations: 0.966 MB / 452.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003917/0.3261, allocations: 163.9 kB / 452.7 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.3264, allocations: 138.1 kB / 452.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3264, allocations: 0 / 452.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.3638, allocations: 10.29 MB / 463.1 MB, free: 8.852 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.359, allocations: 1.219 kB / 463.1 MB, free: 8.852 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.774821636965498]