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.001852/0.001852, allocations: 84.34 kB / 20.95 MB, free: 3.453 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.001622/0.001622, allocations: 165.3 kB / 24.27 MB, free: 148 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.517/1.517, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] 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.563e-06/1.563e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.923e-05/3.079e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003641/0.003672, allocations: 2.016 MB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.006312, allocations: 1.006 MB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.006466, allocations: 4 kB / 275.3 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000231/0.006697, allocations: 35.66 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.006956, allocations: 59.5 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.007558, allocations: 131.7 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006657/0.008224, allocations: 399 kB / 276 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.00845, allocations: 71.64 kB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.009956, allocations: 1.029 MB / 277.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003664/0.01032, allocations: 167.5 kB / 277.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.01044, allocations: 39.94 kB / 277.3 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.959e-05/0.01053, allocations: 36 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.01074, allocations: 163.4 kB / 277.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.01099, allocations: 147.4 kB / 277.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.01221, allocations: 0.9852 MB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.01221, allocations: 0 / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.01221, allocations: 4 kB / 278.6 MB, free: 11.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.024e-05/0.01223, allocations: 4 kB / 278.6 MB, free: 11.54 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.001816/0.01405, allocations: 1.066 MB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.01409, allocations: 12.03 kB / 279.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.01433, allocations: 100.4 kB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005818/0.01491, allocations: 366.3 kB / 280.1 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.638e-05/0.01497, allocations: 28.34 kB / 280.1 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.846e-05/0.01503, allocations: 20.38 kB / 280.2 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008157/0.01584, allocations: 424.8 kB / 280.6 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.01585, allocations: 192 / 280.6 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.01591, allocations: 8.375 kB / 280.6 MB, free: 9.414 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.01592, allocations: 7.938 kB / 280.6 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006074/0.01653, allocations: 342.6 kB / 280.9 MB, free: 9.047 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.01805, allocations: 0.7611 MB / 281.7 MB, free: 8.254 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.01864, allocations: 305.3 kB / 282 MB, free: 7.922 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004102/0.01905, allocations: 243.6 kB / 282.2 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.01908, allocations: 0 / 282.2 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008558/0.01993, allocations: 0.5243 MB / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.01993, allocations: 0 / 282.8 MB, free: 7.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001956/0.02189, allocations: 1.017 MB / 283.8 MB, free: 5.973 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.02203, allocations: 178.2 kB / 283.9 MB, free: 5.762 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/0.02363, allocations: 0.9961 MB / 284.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.02369, allocations: 37.7 kB / 285 MB, free: 4.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.02384, allocations: 153.9 kB / 285.1 MB, free: 4.555 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.751e-05/0.02394, allocations: 59.53 kB / 285.2 MB, free: 4.496 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00027/0.02421, allocations: 165.3 kB / 285.3 MB, free: 4.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001945/0.02441, allocations: 338.8 kB / 285.7 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004096/0.02481, allocations: 250.8 kB / 285.9 MB, free: 3.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.02526, allocations: 301.8 kB / 286.2 MB, free: 3.387 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007695/0.02603, allocations: 0.4938 MB / 286.7 MB, free: 2.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.02604, allocations: 0 / 286.7 MB, free: 2.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001323/0.02736, allocations: 0.741 MB / 287.5 MB, free: 2.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.0275, allocations: 134.8 kB / 287.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.02751, allocations: 48 / 287.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.836e-05/0.02754, allocations: 7.984 kB / 287.6 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.791e-05/0.02763, allocations: 20.05 kB / 287.6 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.02764, allocations: 0 / 287.6 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.02792, allocations: 31.88 kB / 287.6 MB, free: 1.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.02806, allocations: 115.9 kB / 287.8 MB, free: 1.703 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.0007279/0.02879, allocations: 0.5418 MB / 288.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.02896, allocations: 95.47 kB / 288.4 MB, free: 1.031 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.02922, allocations: 134.5 kB / 288.5 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.02922, allocations: 4 kB / 288.5 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.02923, allocations: 0 / 288.5 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.02923, allocations: 4 kB / 288.5 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007825/0.03002, allocations: 0.489 MB / 289 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.03002, allocations: 0 / 289 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.527e-05/0.03006, allocations: 8 kB / 289 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.03007, allocations: 3.938 kB / 289 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.03013, allocations: 27.98 kB / 289.1 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.03013, allocations: 0 / 289.1 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.03014, allocations: 7.938 kB / 289.1 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.03158, allocations: 0.8519 MB / 289.9 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.0326, allocations: 0.493 MB / 290.4 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.03273, allocations: 31.94 kB / 290.4 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.03292, allocations: 19.97 kB / 290.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.03311, allocations: 51.95 kB / 290.5 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.03325, allocations: 111.9 kB / 290.6 MB, free: 14.69 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001132/0.03438, allocations: 0.7289 MB / 291.4 MB, free: 13.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03438, allocations: 0 / 291.4 MB, free: 13.97 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004067/0.03479, allocations: 91.94 kB / 291.4 MB, free: 13.88 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.0002128/0.035, allocations: 139.2 kB / 291.6 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.03621, allocations: 0.8076 MB / 292.4 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.03621, allocations: 0 / 292.4 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006802/0.03689, allocations: 0.5315 MB / 292.9 MB, free: 12.22 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009001/0.03779, allocations: 228.1 kB / 293.1 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.04042, allocations: 1.493 MB / 294.6 MB, free: 10.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005745/0.04099, allocations: 369 kB / 295 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004281/0.04142, allocations: 161.1 kB / 295.1 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.04165, allocations: 76.34 kB / 295.2 MB, free: 9.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.833e-06/0.04166, allocations: 0 / 295.2 MB, free: 9.84 MB / 282.7 MB Notification: Performance of Templates: time 0.01515/0.05681, allocations: 8.303 MB / 303.5 MB, free: 1.66 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.53260902594775]