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.001292/0.001292, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001411/0.001411, allocations: 209.3 kB / 24.47 MB, free: 3.773 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.396/1.396, allocations: 207.7 MB / 235.3 MB, free: 9.789 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.00165/0.00165, allocations: 58.91 kB / 347.2 MB, free: 9.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2728, allocations: 49.16 MB / 396.3 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003021/0.2758, allocations: 1.998 MB / 398.3 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.2779, allocations: 1.018 MB / 399.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.278, allocations: 6.312 kB / 399.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.2782, allocations: 37.23 kB / 399.4 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.2783, allocations: 62.31 kB / 399.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.2787, allocations: 131 kB / 399.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004087/0.2791, allocations: 393.1 kB / 400 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.2793, allocations: 73.39 kB / 400.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.2804, allocations: 0.9706 MB / 401 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.2806, allocations: 197.7 kB / 401.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.8e-05/0.2807, allocations: 34.53 kB / 401.2 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.2808, allocations: 34.75 kB / 401.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.281, allocations: 163.5 kB / 401.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.2812, allocations: 195.9 kB / 401.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000984/0.2821, allocations: 0.9943 MB / 402.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2821, allocations: 1.125 kB / 402.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2822, allocations: 3.938 kB / 402.6 MB, free: 5.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.2822, allocations: 3.938 kB / 402.6 MB, free: 5.703 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.00129/0.2835, allocations: 1.064 MB / 403.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.2835, allocations: 13.95 kB / 403.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.899e-05/0.2836, allocations: 55.38 kB / 403.8 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.2837, allocations: 84.11 kB / 403.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.2842, allocations: 379 kB / 404.2 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.2842, allocations: 15.41 kB / 404.2 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.343e-05/0.2843, allocations: 23.56 kB / 404.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006694/0.2849, allocations: 426.2 kB / 404.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2849, allocations: 0 / 404.7 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.642e-05/0.285, allocations: 10.38 kB / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.285, allocations: 3.406 kB / 404.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.2855, allocations: 341.2 kB / 405 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2868, allocations: 0.7959 MB / 405.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004449/0.2873, allocations: 301.4 kB / 406.1 MB, free: 3.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.2876, allocations: 252.1 kB / 406.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.2876, allocations: 0.8438 kB / 406.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006473/0.2882, allocations: 0.5104 MB / 406.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.2882, allocations: 0 / 406.9 MB, free: 2.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001372/0.2896, allocations: 0.9913 MB / 407.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.2897, allocations: 179.8 kB / 408 MB, free: 1.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.2911, allocations: 0.9975 MB / 409 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.2911, allocations: 35.3 kB / 409.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2912, allocations: 158.7 kB / 409.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.945e-05/0.2913, allocations: 59.67 kB / 409.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/0.2915, allocations: 172.4 kB / 409.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.2916, allocations: 337.4 kB / 409.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.2919, allocations: 250.8 kB / 410 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.2922, allocations: 302.7 kB / 410.3 MB, free: 268 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000595/0.2928, allocations: 498.5 kB / 410.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2928, allocations: 0 / 410.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001097/0.2939, allocations: 0.7243 MB / 411.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/0.294, allocations: 137.4 kB / 411.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.294, allocations: 5 kB / 411.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.2941, allocations: 5.297 kB / 411.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.354e-05/0.2942, allocations: 15.72 kB / 411.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.2942, allocations: 1.344 kB / 411.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.2944, allocations: 20.33 kB / 411.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.2945, allocations: 115.9 kB / 411.8 MB, free: 15.16 MB / 334.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.0006274/0.2951, allocations: 0.5377 MB / 412.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.2952, allocations: 83.05 kB / 412.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/0.2955, allocations: 131.5 kB / 412.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2955, allocations: 2.312 kB / 412.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2955, allocations: 0 / 412.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2955, allocations: 3.938 kB / 412.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007487/0.2962, allocations: 0.5312 MB / 413.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.2962, allocations: 7.672 kB / 413.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.267e-05/0.2963, allocations: 14.7 kB / 413.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2963, allocations: 0 / 413.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.2963, allocations: 27.7 kB / 413.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2963, allocations: 0 / 413.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2963, allocations: 2.781 kB / 413.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2975, allocations: 0.8364 MB / 414 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008874/0.2984, allocations: 0.4993 MB / 414.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.2985, allocations: 23.62 kB / 414.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.2987, allocations: 19.98 kB / 414.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.2988, allocations: 54.59 kB / 414.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.299, allocations: 118.6 kB / 414.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001022/0.3, allocations: 0.727 MB / 415.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3, allocations: 4 kB / 415.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003606/0.3004, allocations: 94.52 kB / 415.5 MB, free: 12.67 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.001657/0.302, allocations: 1.411 MB / 416.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.3031, allocations: 0.8181 MB / 417.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3031, allocations: 1.406 kB / 417.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006037/0.3037, allocations: 0.5208 MB / 418.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008484/0.3046, allocations: 204.9 kB / 418.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007199/0.3118, allocations: 5.2 MB / 423.7 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005334/0.3123, allocations: 376.8 kB / 424 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004598/0.3128, allocations: 165.2 kB / 424.2 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.313, allocations: 135.3 kB / 424.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of SimCode: time 8.22e-07/0.313, allocations: 0 / 424.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.3529, allocations: 11.51 MB / 435.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.93, allocations: 8.062 kB / 435.9 MB, free: 10.17 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.305254621896893]