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.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.001343/0.001343, allocations: 112.1 kB / 21.18 MB, free: 0.7148 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.001526/0.001526, allocations: 216.7 kB / 24.49 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 207.6 MB / 235.3 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 55.91 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2522, allocations: 49.16 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003165/0.2554, allocations: 2.129 MB / 398.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.2575, allocations: 1.074 MB / 399.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2576, allocations: 6.719 kB / 399.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.2578, allocations: 38.45 kB / 399.6 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.2579, allocations: 53.55 kB / 399.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003884/0.2583, allocations: 131.6 kB / 399.8 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.2587, allocations: 398.4 kB / 400.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.2588, allocations: 76.31 kB / 400.2 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.26, allocations: 0.9704 MB / 401.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.2603, allocations: 205.3 kB / 401.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.181e-05/0.2604, allocations: 34.03 kB / 401.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.255e-05/0.2605, allocations: 34.91 kB / 401.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.2607, allocations: 164.5 kB / 401.6 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.261, allocations: 291.7 kB / 401.9 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001116/0.2621, allocations: 0.9862 MB / 402.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2621, allocations: 0 / 402.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2621, allocations: 1 kB / 402.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.2621, allocations: 0 / 402.9 MB, free: 5.543 MB / 318.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.00124/0.2633, allocations: 1.075 MB / 404 MB, free: 4.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.2634, allocations: 13.52 kB / 404 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.291e-05/0.2634, allocations: 51.62 kB / 404 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.2636, allocations: 84.58 kB / 404.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004604/0.264, allocations: 369.6 kB / 404.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.2641, allocations: 20.83 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.2641, allocations: 18.91 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007143/0.2648, allocations: 296.2 kB / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.2648, allocations: 0 / 404.8 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.588e-05/0.2649, allocations: 13.42 kB / 404.8 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2649, allocations: 7.266 kB / 404.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004899/0.2654, allocations: 211.9 kB / 405 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.2672, allocations: 0.8579 MB / 405.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004482/0.2677, allocations: 171.2 kB / 406.1 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.2679, allocations: 120.9 kB / 406.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.268, allocations: 1.375 kB / 406.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007361/0.2687, allocations: 384.5 kB / 406.6 MB, free: 3.238 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2687, allocations: 0 / 406.6 MB, free: 3.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00163/0.2703, allocations: 0.7396 MB / 407.3 MB, free: 2.875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.2704, allocations: 175.5 kB / 407.5 MB, free: 2.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/0.2719, allocations: 1.004 MB / 408.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.272, allocations: 32.11 kB / 408.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.601e-05/0.2721, allocations: 162.8 kB / 408.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.103e-05/0.2722, allocations: 54 kB / 408.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002229/0.2724, allocations: 164.6 kB / 408.9 MB, free: 1.852 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.272e-05/0.2724, allocations: 341.7 kB / 409.2 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.2727, allocations: 118.3 kB / 409.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.273, allocations: 173.4 kB / 409.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005294/0.2735, allocations: 476.9 kB / 410 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.2735, allocations: 1.062 kB / 410 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001077/0.2746, allocations: 0.5787 MB / 410.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.2747, allocations: 137.6 kB / 410.7 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.2747, allocations: 5.219 kB / 410.7 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.2747, allocations: 2.375 kB / 410.7 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.2748, allocations: 18.28 kB / 410.7 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.2749, allocations: 2.219 kB / 410.7 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.2752, allocations: 15.58 kB / 410.7 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/0.2754, allocations: 119.3 kB / 410.8 MB, free: 428 kB / 318.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.0007178/0.2761, allocations: 0.5311 MB / 411.4 MB, free: 16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.2762, allocations: 82.11 kB / 411.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.2765, allocations: 136.9 kB / 411.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.2765, allocations: 1.094 kB / 411.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2765, allocations: 0 / 411.6 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2765, allocations: 5.25 kB / 411.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008779/0.2773, allocations: 0.5969 MB / 412.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2774, allocations: 0 / 412.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.675e-05/0.2774, allocations: 10.09 kB / 412.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2774, allocations: 4 kB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.606e-05/0.2775, allocations: 27.77 kB / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2775, allocations: 0 / 412.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.2775, allocations: 5.109 kB / 412.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.2785, allocations: 0.7086 MB / 412.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008453/0.2794, allocations: 0.4989 MB / 413.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001088/0.2795, allocations: 29.27 kB / 413.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.2797, allocations: 10.12 kB / 413.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.2798, allocations: 58.25 kB / 413.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.2799, allocations: 114.5 kB / 413.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001109/0.2811, allocations: 0.7272 MB / 414.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2811, allocations: 0 / 414.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.2815, allocations: 95.2 kB / 414.5 MB, free: 14.03 MB / 334.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.001483/0.2829, allocations: 1.281 MB / 415.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008602/0.2838, allocations: 0.5363 MB / 416.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2838, allocations: 0 / 416.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.2843, allocations: 406.3 kB / 416.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.2851, allocations: 198.5 kB / 416.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006669/0.2918, allocations: 4.519 MB / 421.4 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.2926, allocations: 0.9718 MB / 422.4 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004722/0.293, allocations: 165.7 kB / 422.5 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.2933, allocations: 130.2 kB / 422.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2933, allocations: 0 / 422.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04321/0.3365, allocations: 10.53 MB / 433.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.67, allocations: 0 / 433.2 MB, free: 13.53 MB / 350.1 MB " [Timeout remaining time 648] (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/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 --stepSize=0.000998004 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.084653628990054]