Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002572/0.002572, allocations: 95.86 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002976/0.002976, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.175e-05/3.341e-05, allocations: 2.312 kB / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.005842/0.005875, allocations: 2.03 MB / 269.3 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004301/0.01018, allocations: 0.99 MB / 270.3 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.01033, allocations: 3.938 kB / 270.3 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002902/0.01062, allocations: 47.58 kB / 270.4 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.01086, allocations: 55.52 kB / 270.4 MB, free: 3.59 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006932/0.01155, allocations: 131.7 kB / 270.6 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008911/0.01244, allocations: 403 kB / 271 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003095/0.01275, allocations: 71.59 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.01475, allocations: 1.029 MB / 272.1 MB, free: 1.961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004502/0.0152, allocations: 175.5 kB / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001705/0.01537, allocations: 36 kB / 272.3 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.01552, allocations: 36 kB / 272.3 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003255/0.01584, allocations: 175.3 kB / 272.5 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003258/0.01617, allocations: 139.4 kB / 272.6 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002059/0.01823, allocations: 0.9852 MB / 273.6 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.01824, allocations: 4 kB / 273.6 MB, free: 428 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.01824, allocations: 0 / 273.6 MB, free: 428 kB / 250.7 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.01825, allocations: 0 / 273.6 MB, free: 428 kB / 250.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.002926/0.02118, allocations: 1.295 MB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.02123, allocations: 8.031 kB / 274.9 MB, free: 15.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003158/0.02154, allocations: 108.4 kB / 275 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009256/0.02247, allocations: 381 kB / 275.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-05/0.02253, allocations: 12.38 kB / 275.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.02263, allocations: 28.3 kB / 275.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.02385, allocations: 408.6 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.02387, allocations: 4.172 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.929e-05/0.02394, allocations: 8.375 kB / 275.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.02395, allocations: 7.938 kB / 275.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009381/0.02489, allocations: 290.7 kB / 276.1 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.02818, allocations: 1.083 MB / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001093/0.02927, allocations: 341.7 kB / 277.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007246/0.03, allocations: 270.5 kB / 277.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.03004, allocations: 7.875 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.03127, allocations: 0.5296 MB / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.204e-06/0.03127, allocations: 0 / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.003117/0.03439, allocations: 1.056 MB / 279.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004472/0.03483, allocations: 174.2 kB / 279.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003885/0.03872, allocations: 1.393 MB / 281 MB, free: 8.609 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-05/0.03881, allocations: 41.7 kB / 281 MB, free: 8.562 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000286/0.0391, allocations: 212.6 kB / 281.2 MB, free: 8.348 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.03927, allocations: 63.59 kB / 281.3 MB, free: 8.285 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004567/0.03973, allocations: 194.9 kB / 281.5 MB, free: 8.086 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004922/0.04022, allocations: 0.5274 MB / 282 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007361/0.04096, allocations: 258.8 kB / 282.2 MB, free: 7.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008527/0.04181, allocations: 325.2 kB / 282.6 MB, free: 6.906 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.04322, allocations: 0.5116 MB / 283.1 MB, free: 6.324 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.04323, allocations: 0 / 283.1 MB, free: 6.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.002364/0.04559, allocations: 0.7566 MB / 283.8 MB, free: 5.512 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.04581, allocations: 134.8 kB / 284 MB, free: 5.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.04582, allocations: 4 kB / 284 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.04584, allocations: 0 / 284 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.046, allocations: 16 kB / 284 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.579e-05/0.04601, allocations: 3.984 kB / 284 MB, free: 5.332 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000419/0.04643, allocations: 23.89 kB / 284 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002538/0.04668, allocations: 115.9 kB / 284.1 MB, free: 5.195 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.001222/0.04791, allocations: 0.5369 MB / 284.7 MB, free: 4.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002645/0.04817, allocations: 103.4 kB / 284.8 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003493/0.04852, allocations: 110.5 kB / 284.9 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.04852, allocations: 3.938 kB / 284.9 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.04853, allocations: 0 / 284.9 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.04853, allocations: 4 kB / 284.9 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/0.05063, allocations: 0.7537 MB / 285.6 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.05063, allocations: 0 / 285.6 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.562e-05/0.05071, allocations: 19.98 kB / 285.6 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.04e-05/0.05072, allocations: 3.938 kB / 285.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.172e-05/0.05082, allocations: 27.98 kB / 285.7 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-05/0.05083, allocations: 8.109 kB / 285.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.05083, allocations: 0 / 285.7 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002635/0.05347, allocations: 0.8975 MB / 286.6 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008858/0.05435, allocations: 468.9 kB / 287 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.05446, allocations: 23.94 kB / 287.1 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.05462, allocations: 16 kB / 287.1 MB, free: 2.082 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.05481, allocations: 59.92 kB / 287.1 MB, free: 2.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/0.05497, allocations: 119.9 kB / 287.3 MB, free: 1.906 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00132/0.05629, allocations: 0.846 MB / 288.1 MB, free: 1.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.05629, allocations: 0 / 288.1 MB, free: 1.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003957/0.05668, allocations: 95.89 kB / 288.2 MB, free: 0.9727 MB / 266.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.0002118/0.05689, allocations: 135.2 kB / 288.3 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.05818, allocations: 0.8893 MB / 289.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.05818, allocations: 0 / 289.2 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007158/0.0589, allocations: 0.582 MB / 289.8 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000901/0.0598, allocations: 233.8 kB / 290 MB, free: 14.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.06227, allocations: 1.459 MB / 291.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.06279, allocations: 345 kB / 291.8 MB, free: 13.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003701/0.06316, allocations: 165 kB / 292 MB, free: 12.92 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.06336, allocations: 76.34 kB / 292.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of SimCode: time 1.182e-06/0.06336, allocations: 7.938 kB / 292.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of Templates: time 0.01493/0.07829, allocations: 8.278 MB / 300.3 MB, free: 4.676 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.63294462999329]