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.001913/0.001913, allocations: 82.5 kB / 21.99 MB, free: 4.754 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.00226/0.00226, allocations: 153.8 kB / 25.24 MB, free: 2.746 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.343/1.343, allocations: 158.6 MB / 187 MB, free: 6.359 MB / 174.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: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [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.001977/0.001977, allocations: 60.23 kB / 299.4 MB, free: 6.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2237, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003213/0.2269, allocations: 1.988 MB / 350.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.2291, allocations: 1.014 MB / 351.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.2292, allocations: 4 kB / 351.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001592/0.2294, allocations: 39.64 kB / 351.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.2295, allocations: 63.5 kB / 351.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.2299, allocations: 131.8 kB / 351.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004811/0.2304, allocations: 391.1 kB / 352.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.2306, allocations: 79.36 kB / 352.2 MB, free: 11.81 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.2316, allocations: 0.9708 MB / 353.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.2319, allocations: 191.2 kB / 353.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.07e-05/0.232, allocations: 36 kB / 353.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.312e-05/0.2321, allocations: 36 kB / 353.4 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.2323, allocations: 167.2 kB / 353.6 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.2325, allocations: 202.6 kB / 353.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009573/0.2335, allocations: 0.9868 MB / 354.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2335, allocations: 0 / 354.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2335, allocations: 0 / 354.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.2335, allocations: 0 / 354.8 MB, free: 9.23 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.001261/0.2347, allocations: 1.074 MB / 355.9 MB, free: 8.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.2348, allocations: 11.98 kB / 355.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.2349, allocations: 92.36 kB / 356 MB, free: 7.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004899/0.2354, allocations: 375 kB / 356.3 MB, free: 7.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.892e-05/0.2354, allocations: 16.36 kB / 356.3 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.2355, allocations: 20.38 kB / 356.4 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006786/0.2361, allocations: 432.5 kB / 356.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.2362, allocations: 0 / 356.8 MB, free: 7.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.083e-05/0.2362, allocations: 12 kB / 356.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.2362, allocations: 4 kB / 356.8 MB, free: 7.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.2367, allocations: 342.6 kB / 357.1 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.2379, allocations: 0.7457 MB / 357.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.2385, allocations: 309.2 kB / 358.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003461/0.2388, allocations: 243.8 kB / 358.4 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.2388, allocations: 11.98 kB / 358.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007088/0.2395, allocations: 0.5124 MB / 358.9 MB, free: 4.773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.2395, allocations: 0 / 358.9 MB, free: 4.773 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001505/0.241, allocations: 1.001 MB / 359.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.2412, allocations: 178.2 kB / 360.1 MB, free: 3.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.2425, allocations: 1.004 MB / 361.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.2426, allocations: 33.7 kB / 361.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.2427, allocations: 157.9 kB / 361.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.564e-05/0.2428, allocations: 59.58 kB / 361.4 MB, free: 2.211 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.243, allocations: 173.3 kB / 361.5 MB, free: 2.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2432, allocations: 338.8 kB / 361.9 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.2435, allocations: 250.8 kB / 362.1 MB, free: 1.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.2439, allocations: 295 kB / 362.4 MB, free: 1.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/0.2446, allocations: 0.4937 MB / 362.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2446, allocations: 0 / 362.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001146/0.2457, allocations: 0.7293 MB / 363.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.2459, allocations: 138.8 kB / 363.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2459, allocations: 64 / 363.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2459, allocations: 8 kB / 363.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.198e-05/0.246, allocations: 15.92 kB / 363.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.246, allocations: 4 kB / 363.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2462, allocations: 23.92 kB / 363.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.2463, allocations: 111.9 kB / 363.9 MB, free: 15.43 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.0007085/0.247, allocations: 0.5302 MB / 364.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.2472, allocations: 87.42 kB / 364.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002156/0.2474, allocations: 134.5 kB / 364.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2474, allocations: 96 / 364.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2474, allocations: 3.938 kB / 364.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2474, allocations: 0 / 364.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006811/0.2481, allocations: 0.5044 MB / 365.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2481, allocations: 0 / 365.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.2481, allocations: 12 kB / 365.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2481, allocations: 0 / 365.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.988e-05/0.2482, allocations: 27.98 kB / 365.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.2482, allocations: 8.125 kB / 365.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2482, allocations: 0 / 365.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.2494, allocations: 0.8494 MB / 366.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008499/0.2503, allocations: 0.4968 MB / 366.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.2503, allocations: 20 kB / 366.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.2505, allocations: 15.98 kB / 366.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.2507, allocations: 51.95 kB / 366.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.2508, allocations: 119.9 kB / 366.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.2518, allocations: 0.725 MB / 367.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2518, allocations: 0 / 367.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.2522, allocations: 95.95 kB / 367.6 MB, free: 11.62 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.0001693/0.2524, allocations: 131.3 kB / 367.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.2535, allocations: 0.8193 MB / 368.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2535, allocations: 4.125 kB / 368.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.2541, allocations: 0.5237 MB / 369.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008527/0.2549, allocations: 206.9 kB / 369.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.2573, allocations: 1.471 MB / 370.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.2578, allocations: 369.3 kB / 371.1 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003556/0.2581, allocations: 161.1 kB / 371.3 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.2583, allocations: 72.36 kB / 371.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2583, allocations: 3.938 kB / 371.3 MB, free: 7.621 MB / 334.1 MB Notification: Performance of Templates: time 0.01402/0.2724, allocations: 8.322 MB / 379.7 MB, free: 15.27 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] 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: 4.410541803925298]