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.00139/0.00139, allocations: 76.81 kB / 22.28 MB, free: 2.203 MB / 18.57 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.001271/0.001271, allocations: 163.3 kB / 25.69 MB, free: 8.445 MB / 18.57 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 0.9671/0.9671, allocations: 158.6 MB / 187.6 MB, free: 2.766 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.264e-05, allocations: 2.312 kB / 251.6 MB, free: 7.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002603/0.002626, allocations: 2.112 MB / 253.7 MB, free: 5.098 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.004364, allocations: 1.038 MB / 254.7 MB, free: 4.051 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.374e-05/0.004457, allocations: 7.938 kB / 254.7 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.004627, allocations: 39.64 kB / 254.8 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.799e-05/0.004725, allocations: 63.45 kB / 254.8 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.005107, allocations: 135.7 kB / 255 MB, free: 3.809 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003838/0.005491, allocations: 395 kB / 255.3 MB, free: 3.422 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.005638, allocations: 78.19 kB / 255.4 MB, free: 3.344 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006711/0.00631, allocations: 0.932 MB / 256.4 MB, free: 2.41 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.006498, allocations: 175.5 kB / 256.5 MB, free: 2.238 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.211e-05/0.00655, allocations: 32 kB / 256.6 MB, free: 2.207 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.575e-05/0.006596, allocations: 40 kB / 256.6 MB, free: 2.168 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.006705, allocations: 175.3 kB / 256.8 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.00682, allocations: 143.4 kB / 256.9 MB, free: 1.855 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.007279, allocations: 0.6578 MB / 257.6 MB, free: 1.191 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.007282, allocations: 4 kB / 257.6 MB, free: 1.188 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007284, allocations: 0 / 257.6 MB, free: 1.188 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.00729, allocations: 0 / 257.6 MB, free: 1.188 MB / 234.7 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.0008028/0.008093, allocations: 1.01 MB / 258.6 MB, free: 128 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.008128, allocations: 11.98 kB / 258.6 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.096e-05/0.008219, allocations: 68.81 kB / 258.7 MB, free: 48 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.008518, allocations: 346.2 kB / 259 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.008548, allocations: 20.38 kB / 259 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.008581, allocations: 20.38 kB / 259 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.008965, allocations: 345.2 kB / 259.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.008975, allocations: 192 / 259.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.008998, allocations: 8.375 kB / 259.4 MB, free: 15.26 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.009005, allocations: 7.938 kB / 259.4 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.009179, allocations: 206.7 kB / 259.6 MB, free: 15.03 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.009807, allocations: 478.3 kB / 260.1 MB, free: 14.54 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/0.01003, allocations: 221.3 kB / 260.3 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.01015, allocations: 187.6 kB / 260.5 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.01016, allocations: 3.984 kB / 260.5 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.01045, allocations: 452.7 kB / 260.9 MB, free: 13.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.01045, allocations: 0 / 260.9 MB, free: 13.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004895/0.01094, allocations: 0.6617 MB / 261.6 MB, free: 12.83 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.01101, allocations: 174.2 kB / 261.7 MB, free: 12.62 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/0.01152, allocations: 0.652 MB / 262.4 MB, free: 11.96 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.01155, allocations: 37.7 kB / 262.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.01161, allocations: 130.4 kB / 262.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.995e-05/0.01166, allocations: 59.56 kB / 262.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.01179, allocations: 141.3 kB / 262.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.199e-05/0.01188, allocations: 342.7 kB / 263.1 MB, free: 11.24 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.01201, allocations: 178.8 kB / 263.3 MB, free: 11.04 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.01215, allocations: 227 kB / 263.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.01241, allocations: 408.5 kB / 263.9 MB, free: 10.32 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.01241, allocations: 0 / 263.9 MB, free: 10.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003283/0.01274, allocations: 455 kB / 264.3 MB, free: 9.816 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.169e-05/0.01281, allocations: 138.7 kB / 264.5 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01282, allocations: 0 / 264.5 MB, free: 9.656 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.01283, allocations: 4 kB / 264.5 MB, free: 9.652 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.38e-05/0.01289, allocations: 11.98 kB / 264.5 MB, free: 9.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.936e-06/0.01289, allocations: 4.062 kB / 264.5 MB, free: 9.637 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.01301, allocations: 27.94 kB / 264.5 MB, free: 9.609 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.01308, allocations: 99.88 kB / 264.6 MB, free: 9.512 MB / 250.7 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.000374/0.01345, allocations: 493.7 kB / 265.1 MB, free: 8.996 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.961e-05/0.01351, allocations: 63.94 kB / 265.1 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.01365, allocations: 114.4 kB / 265.3 MB, free: 8.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.01365, allocations: 11.97 kB / 265.3 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.01366, allocations: 0 / 265.3 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.01366, allocations: 0 / 265.3 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.01397, allocations: 317.4 kB / 265.6 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.01397, allocations: 4 kB / 265.6 MB, free: 8.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.388e-05/0.01401, allocations: 8 kB / 265.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.01401, allocations: 0 / 265.6 MB, free: 8.469 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.01403, allocations: 15.98 kB / 265.6 MB, free: 8.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.01404, allocations: 3.984 kB / 265.6 MB, free: 8.449 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01404, allocations: 3.938 kB / 265.6 MB, free: 8.445 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003914/0.01443, allocations: 0.5457 MB / 266.2 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.01477, allocations: 293.2 kB / 266.4 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.705e-05/0.01482, allocations: 27.94 kB / 266.5 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.331e-05/0.01491, allocations: 12 kB / 266.5 MB, free: 7.492 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.015, allocations: 31.89 kB / 266.5 MB, free: 7.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.29e-05/0.01507, allocations: 103.9 kB / 266.6 MB, free: 7.359 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002931/0.01537, allocations: 320.3 kB / 266.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01537, allocations: 0 / 266.9 MB, free: 7.051 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002076/0.01557, allocations: 95.89 kB / 267 MB, free: 6.957 MB / 250.7 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.0001246/0.0157, allocations: 112.4 kB / 267.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.01614, allocations: 0.6756 MB / 267.8 MB, free: 6.062 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.01614, allocations: 8 kB / 267.8 MB, free: 6.055 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.01642, allocations: 488.2 kB / 268.3 MB, free: 5.5 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.01688, allocations: 218.7 kB / 268.5 MB, free: 5.293 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.01842, allocations: 1.358 MB / 269.9 MB, free: 3.879 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.01854, allocations: 151.8 kB / 270 MB, free: 3.711 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002499/0.01879, allocations: 161.2 kB / 270.2 MB, free: 3.551 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/0.0192, allocations: 251.1 kB / 270.4 MB, free: 3.305 MB / 250.7 MB Notification: Performance of SimCode: time 1.523e-06/0.0192, allocations: 0 / 270.4 MB, free: 3.305 MB / 250.7 MB Notification: Performance of Templates: time 0.009506/0.02871, allocations: 8.01 MB / 278.4 MB, free: 11.32 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7161065880209208]