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.0008893/0.0008893, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0008869/0.0008869, allocations: 168.8 kB / 24.91 MB, free: 9.191 MB / 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 0.9148/0.9148, allocations: 177.1 MB / 205.3 MB, free: 5.492 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.382e-06/1.382e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.592e-05/1.73e-05, allocations: 6.25 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00309/0.003108, allocations: 2.066 MB / 275.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.005364, allocations: 1.037 MB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.974e-05/0.005463, allocations: 0 / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.005643, allocations: 43.64 kB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001472/0.00579, allocations: 59.45 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.006209, allocations: 135.8 kB / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.00667, allocations: 395 kB / 277.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.006838, allocations: 70.25 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009949/0.007832, allocations: 0.9436 MB / 278.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.008075, allocations: 175.5 kB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.382e-05/0.008149, allocations: 40 kB / 278.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.315e-05/0.008212, allocations: 39.94 kB / 278.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.008362, allocations: 163.3 kB / 278.6 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.008537, allocations: 143.4 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008797/0.009417, allocations: 0.6579 MB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.009419, allocations: 0 / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.00942, allocations: 3.938 kB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.009426, allocations: 0 / 279.4 MB, free: 11.34 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.001022/0.01045, allocations: 1.018 MB / 280.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.01048, allocations: 8.031 kB / 280.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.01058, allocations: 64.88 kB / 280.5 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.01084, allocations: 350.2 kB / 280.8 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.01087, allocations: 24.34 kB / 280.8 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.0109, allocations: 20.38 kB / 280.9 MB, free: 9.785 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.01124, allocations: 341.4 kB / 281.2 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.01124, allocations: 192 / 281.2 MB, free: 9.418 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.01127, allocations: 12.38 kB / 281.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.01127, allocations: 3.938 kB / 281.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.01143, allocations: 202.7 kB / 281.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000561/0.01199, allocations: 470.3 kB / 281.9 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.0122, allocations: 229.3 kB / 282.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.01232, allocations: 191.6 kB / 282.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.01233, allocations: 4 kB / 282.3 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.01259, allocations: 441.5 kB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.0126, allocations: 0 / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004665/0.01306, allocations: 0.6649 MB / 283.4 MB, free: 6.992 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.01312, allocations: 178.2 kB / 283.6 MB, free: 6.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004885/0.01361, allocations: 0.6559 MB / 284.2 MB, free: 6.113 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.01364, allocations: 29.7 kB / 284.2 MB, free: 6.078 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.055e-05/0.01369, allocations: 134.4 kB / 284.4 MB, free: 5.941 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.913e-05/0.01374, allocations: 63.5 kB / 284.4 MB, free: 5.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.01387, allocations: 145.3 kB / 284.6 MB, free: 5.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.379e-05/0.01394, allocations: 342.8 kB / 284.9 MB, free: 5.387 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.01406, allocations: 174.8 kB / 285.1 MB, free: 5.191 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.01418, allocations: 227 kB / 285.3 MB, free: 4.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.01443, allocations: 412.5 kB / 285.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.01443, allocations: 0 / 285.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003118/0.01474, allocations: 455 kB / 286.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.01487, allocations: 142.7 kB / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.01488, allocations: 0 / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.024e-05/0.01489, allocations: 0 / 286.3 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.251e-05/0.01494, allocations: 19.98 kB / 286.3 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.01494, allocations: 4 kB / 286.3 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01505, allocations: 27.88 kB / 286.3 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.73e-05/0.01512, allocations: 95.94 kB / 286.4 MB, free: 3.652 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.0003593/0.01548, allocations: 497.7 kB / 286.9 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.315e-05/0.01554, allocations: 63.94 kB / 287 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.01567, allocations: 114.4 kB / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.01567, allocations: 0 / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.442e-06/0.01568, allocations: 0 / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.01568, allocations: 0 / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.01596, allocations: 309.4 kB / 287.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01596, allocations: 0 / 287.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/0.01598, allocations: 7.984 kB / 287.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.01598, allocations: 4 kB / 287.4 MB, free: 2.621 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.521e-05/0.01601, allocations: 19.97 kB / 287.4 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.01601, allocations: 3.938 kB / 287.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.01601, allocations: 3.938 kB / 287.4 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004947/0.01651, allocations: 0.5374 MB / 288 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.01685, allocations: 293.1 kB / 288.3 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.01691, allocations: 28.12 kB / 288.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.161e-05/0.01699, allocations: 15.98 kB / 288.3 MB, free: 1.645 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.289e-05/0.01707, allocations: 35.89 kB / 288.3 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.01714, allocations: 103.9 kB / 288.4 MB, free: 1.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002707/0.01741, allocations: 320.3 kB / 288.8 MB, free: 1.199 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01741, allocations: 0 / 288.8 MB, free: 1.199 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001828/0.01759, allocations: 87.95 kB / 288.8 MB, free: 1.113 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.0001132/0.01771, allocations: 120.4 kB / 289 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003937/0.0181, allocations: 0.6795 MB / 289.6 MB, free: 212 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.01811, allocations: 8 kB / 289.6 MB, free: 204 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.01834, allocations: 484.1 kB / 290.1 MB, free: 15.65 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.01872, allocations: 209.9 kB / 290.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.02016, allocations: 1.382 MB / 291.7 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.823e-05/0.02026, allocations: 147.8 kB / 291.8 MB, free: 13.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.02044, allocations: 161.1 kB / 292 MB, free: 13.7 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003602/0.0208, allocations: 243.1 kB / 292.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0208, allocations: 0 / 292.2 MB, free: 13.46 MB / 282.7 MB Notification: Performance of Templates: time 0.00797/0.02877, allocations: 8.028 MB / 300.3 MB, free: 5.566 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: 2.5543033978901803]