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.001037/0.001037, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001058/0.001058, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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.071/1.071, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] 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: 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_4.1.0_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_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 273 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.216e-05/4.402e-05, allocations: 2.312 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004442/0.004486, allocations: 2.078 MB / 275.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.007278, allocations: 1.021 MB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.007437, allocations: 0 / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.007663, allocations: 39.64 kB / 276.1 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.00777, allocations: 59.52 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.008201, allocations: 131.7 kB / 276.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005719/0.008773, allocations: 406.9 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.009012, allocations: 67.64 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.01013, allocations: 1.026 MB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002268/0.01036, allocations: 179.5 kB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.01044, allocations: 32 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.301e-05/0.01049, allocations: 36 kB / 278 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.01062, allocations: 175.3 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.01076, allocations: 139.4 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.01137, allocations: 0.6695 MB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.01138, allocations: 0 / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.01138, allocations: 0 / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.01139, allocations: 0 / 279 MB, free: 11.43 MB / 266.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.001203/0.0126, allocations: 1.217 MB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.01263, allocations: 8.031 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.01277, allocations: 100.4 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.0131, allocations: 377 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.01313, allocations: 24.38 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.01317, allocations: 16.38 kB / 280.7 MB, free: 9.609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005444/0.01371, allocations: 381.5 kB / 281.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.01373, allocations: 192 / 281.1 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.01376, allocations: 16.3 kB / 281.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.01377, allocations: 7.938 kB / 281.1 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.01403, allocations: 242.7 kB / 281.4 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.01515, allocations: 0.8931 MB / 282.3 MB, free: 7.988 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003271/0.01547, allocations: 285.8 kB / 282.5 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.01565, allocations: 214.4 kB / 282.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.01566, allocations: 4 kB / 282.8 MB, free: 7.43 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004038/0.01607, allocations: 496.9 kB / 283.2 MB, free: 6.883 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.106e-06/0.01607, allocations: 3.984 kB / 283.3 MB, free: 6.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009504/0.01702, allocations: 0.9268 MB / 284.2 MB, free: 5.871 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.01709, allocations: 182.2 kB / 284.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.01814, allocations: 1.159 MB / 285.5 MB, free: 4.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.01817, allocations: 33.7 kB / 285.5 MB, free: 4.441 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.01828, allocations: 208.6 kB / 285.8 MB, free: 4.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.467e-05/0.01833, allocations: 59.53 kB / 285.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.01864, allocations: 171 kB / 286 MB, free: 3.996 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.01878, allocations: 0.504 MB / 286.5 MB, free: 3.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.01896, allocations: 210.8 kB / 286.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.01915, allocations: 269.2 kB / 286.9 MB, free: 2.941 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003499/0.0195, allocations: 455.8 kB / 287.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.01951, allocations: 0 / 287.4 MB, free: 2.426 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006478/0.02015, allocations: 0.6628 MB / 288.1 MB, free: 1.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.879e-05/0.02025, allocations: 138.8 kB / 288.2 MB, free: 1.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.02026, allocations: 3.984 kB / 288.2 MB, free: 1.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.02028, allocations: 4 kB / 288.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.02036, allocations: 12 kB / 288.2 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.02037, allocations: 4 kB / 288.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001406/0.02051, allocations: 27.92 kB / 288.2 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.02059, allocations: 107.9 kB / 288.3 MB, free: 1.391 MB / 266.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.0004194/0.02101, allocations: 0.5289 MB / 288.9 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.608e-05/0.0211, allocations: 95.47 kB / 289 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.02123, allocations: 110.5 kB / 289.1 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.02124, allocations: 4 kB / 289.1 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.02124, allocations: 0 / 289.1 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.02125, allocations: 4 kB / 289.1 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008768/0.02212, allocations: 0.5938 MB / 289.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.02213, allocations: 0 / 289.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-05/0.02216, allocations: 12 kB / 289.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.02217, allocations: 3.938 kB / 289.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.02221, allocations: 27.98 kB / 289.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.02221, allocations: 0 / 289.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.02222, allocations: 3.984 kB / 289.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007092/0.02293, allocations: 0.8027 MB / 290.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004937/0.02342, allocations: 476.7 kB / 291 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.551e-05/0.02349, allocations: 23.94 kB / 291 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.02359, allocations: 19.98 kB / 291 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000136/0.02373, allocations: 43.94 kB / 291.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.482e-05/0.02381, allocations: 115.9 kB / 291.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007624/0.02458, allocations: 0.7717 MB / 292 MB, free: 13.62 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.02458, allocations: 0 / 292 MB, free: 13.62 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002917/0.02487, allocations: 84 kB / 292 MB, free: 13.54 MB / 282.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.000165/0.02503, allocations: 135.3 kB / 292.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006261/0.02566, allocations: 0.7519 MB / 292.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.02566, allocations: 0 / 292.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.02599, allocations: 0.5 MB / 293.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.0266, allocations: 233.3 kB / 293.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.02814, allocations: 1.4 MB / 295.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.02827, allocations: 155.7 kB / 295.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002528/0.02852, allocations: 157.1 kB / 295.4 MB, free: 9.961 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.02865, allocations: 84.34 kB / 295.4 MB, free: 9.879 MB / 282.7 MB Notification: Performance of SimCode: time 1.773e-06/0.02865, allocations: 0 / 295.4 MB, free: 9.879 MB / 282.7 MB Notification: Performance of Templates: time 0.0114/0.04006, allocations: 8.303 MB / 303.8 MB, free: 1.699 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.2222804753109813]