Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009697/0.0009697, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.016/1.016, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 3.938 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.882e-05/3.078e-05, allocations: 9.125 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003228/0.003259, allocations: 2.083 MB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.005425, allocations: 1.021 MB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.00556, allocations: 7.938 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.00576, allocations: 35.66 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.005892, allocations: 63.44 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.006376, allocations: 131.7 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005009/0.006877, allocations: 411 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.007077, allocations: 59.66 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.008143, allocations: 1.033 MB / 277.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000247/0.00839, allocations: 171.5 kB / 277.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.483e-05/0.008485, allocations: 36 kB / 277.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.833e-05/0.008553, allocations: 36 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.008714, allocations: 167.3 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.008898, allocations: 147.4 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007452/0.009643, allocations: 0.6579 MB / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.009648, allocations: 0 / 278.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.00965, allocations: 4 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.009665, allocations: 0 / 278.9 MB, free: 11.39 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.001399/0.01106, allocations: 1.213 MB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.01111, allocations: 19.97 kB / 280.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.01128, allocations: 104.4 kB / 280.3 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004384/0.01172, allocations: 373 kB / 280.6 MB, free: 9.602 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.311e-05/0.01177, allocations: 16.38 kB / 280.7 MB, free: 9.586 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.533e-05/0.01182, allocations: 24.31 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006265/0.01245, allocations: 373.5 kB / 281 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.01246, allocations: 192 / 281 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.0125, allocations: 16.38 kB / 281.1 MB, free: 9.148 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.01251, allocations: 7.938 kB / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003568/0.01287, allocations: 250.7 kB / 281.3 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.01435, allocations: 0.8931 MB / 282.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/0.01479, allocations: 277.7 kB / 282.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.01504, allocations: 223.3 kB / 282.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.01507, allocations: 4 kB / 282.7 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005001/0.01557, allocations: 0.4945 MB / 283.2 MB, free: 6.824 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.915e-06/0.01557, allocations: 0 / 283.2 MB, free: 6.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001232/0.0168, allocations: 0.9205 MB / 284.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.67e-05/0.0169, allocations: 178.2 kB / 284.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/0.01846, allocations: 1.162 MB / 285.5 MB, free: 4.438 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.52e-05/0.01851, allocations: 33.7 kB / 285.5 MB, free: 4.398 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.01863, allocations: 204.6 kB / 285.7 MB, free: 4.191 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.33e-05/0.0187, allocations: 71.45 kB / 285.8 MB, free: 4.121 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.01889, allocations: 171 kB / 285.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.01904, allocations: 0.5079 MB / 286.4 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.0193, allocations: 206.8 kB / 286.6 MB, free: 3.199 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.01956, allocations: 269.2 kB / 286.9 MB, free: 2.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.01999, allocations: 451.8 kB / 287.3 MB, free: 2.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.01999, allocations: 0 / 287.3 MB, free: 2.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008364/0.02083, allocations: 0.6667 MB / 288 MB, free: 1.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.763e-05/0.02092, allocations: 137.6 kB / 288.1 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.02092, allocations: 4 kB / 288.1 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.02094, allocations: 0 / 288.1 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.804e-05/0.02103, allocations: 19.92 kB / 288.2 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.02104, allocations: 4 kB / 288.2 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.02125, allocations: 23.92 kB / 288.2 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.02137, allocations: 107.9 kB / 288.3 MB, free: 1.344 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.000527/0.0219, allocations: 0.529 MB / 288.8 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001241/0.02202, allocations: 95.47 kB / 288.9 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001784/0.0222, allocations: 106.5 kB / 289 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.0222, allocations: 48 / 289 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.02221, allocations: 3.984 kB / 289 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.02222, allocations: 3.984 kB / 289 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008762/0.02309, allocations: 0.5938 MB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.0231, allocations: 4 kB / 289.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.643e-05/0.02315, allocations: 15.98 kB / 289.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.02316, allocations: 3.938 kB / 289.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.985e-05/0.02321, allocations: 27.98 kB / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.02321, allocations: 0 / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.02321, allocations: 0 / 289.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.02424, allocations: 0.8143 MB / 290.5 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006806/0.02492, allocations: 468.8 kB / 290.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.02502, allocations: 27.94 kB / 291 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.0252, allocations: 12 kB / 291 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.02536, allocations: 43.94 kB / 291 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.02548, allocations: 123.9 kB / 291.1 MB, free: 14.33 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001049/0.02653, allocations: 0.7639 MB / 291.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02653, allocations: 0 / 291.9 MB, free: 13.57 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003866/0.02692, allocations: 80 kB / 292 MB, free: 13.5 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.0001824/0.0271, allocations: 143.2 kB / 292.1 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008447/0.02794, allocations: 0.7487 MB / 292.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02795, allocations: 0 / 292.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004467/0.02839, allocations: 0.5039 MB / 293.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007915/0.02918, allocations: 229.4 kB / 293.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002121/0.03131, allocations: 1.4 MB / 295 MB, free: 10.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001763/0.03148, allocations: 143.8 kB / 295.1 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003545/0.03184, allocations: 165.2 kB / 295.3 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.03203, allocations: 76.36 kB / 295.4 MB, free: 9.844 MB / 282.7 MB Notification: Performance of SimCode: time 1.613e-06/0.03203, allocations: 0 / 295.4 MB, free: 9.844 MB / 282.7 MB Notification: Performance of Templates: time 0.01442/0.04645, allocations: 8.733 MB / 304.1 MB, free: 1.207 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9713229490444064]