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.001749/0.001749, allocations: 117 kB / 18.41 MB, free: 4.664 MB / 14.72 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.001875/0.001875, allocations: 186.9 kB / 21.34 MB, free: 1.738 MB / 14.72 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.441/1.441, allocations: 222.9 MB / 247.1 MB, free: 4.211 MB / 190.1 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 0.00151/0.00151, allocations: 43.92 kB / 358.7 MB, free: 8.363 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09192, allocations: 49.45 MB / 408.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00328/0.09523, allocations: 2.102 MB / 410.2 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.09749, allocations: 1.013 MB / 411.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.807e-05/0.0976, allocations: 0 / 411.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.09778, allocations: 39.59 kB / 411.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.09791, allocations: 59.56 kB / 411.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.09828, allocations: 119.8 kB / 411.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.09879, allocations: 415.1 kB / 411.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.09901, allocations: 115 kB / 412 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009681/0.09999, allocations: 0.9357 MB / 412.9 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002634/0.1003, allocations: 199.2 kB / 413.1 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.774e-05/0.1004, allocations: 32 kB / 413.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.525e-05/0.1005, allocations: 36 kB / 413.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.1006, allocations: 159.4 kB / 413.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003207/0.101, allocations: 290 kB / 413.6 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009554/0.1019, allocations: 0.9766 MB / 414.6 MB, free: 396 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.102, allocations: 12 kB / 414.6 MB, free: 384 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.102, allocations: 0 / 414.6 MB, free: 384 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.102, allocations: 0 / 414.6 MB, free: 384 kB / 334.1 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.001332/0.1033, allocations: 1.138 MB / 415.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1034, allocations: 11.89 kB / 415.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.1035, allocations: 84.42 kB / 415.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004807/0.104, allocations: 440.8 kB / 416.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/0.104, allocations: 12.38 kB / 416.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.1041, allocations: 20.38 kB / 416.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/0.1047, allocations: 301.8 kB / 416.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.1047, allocations: 0 / 416.6 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.1048, allocations: 12 kB / 416.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1048, allocations: 4 kB / 416.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000472/0.1053, allocations: 212.3 kB / 416.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.1065, allocations: 0.898 MB / 417.7 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/0.107, allocations: 222.5 kB / 417.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.1073, allocations: 160.7 kB / 418.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.1074, allocations: 0 / 418.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006054/0.108, allocations: 386 kB / 418.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.108, allocations: 0 / 418.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001405/0.1094, allocations: 0.7362 MB / 419.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.1095, allocations: 182.2 kB / 419.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.1108, allocations: 0.9922 MB / 420.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.1109, allocations: 41.69 kB / 420.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.111, allocations: 157.9 kB / 420.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.329e-05/0.1111, allocations: 55.62 kB / 420.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.1113, allocations: 165.3 kB / 420.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1115, allocations: 342.8 kB / 421.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.1117, allocations: 116 kB / 421.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.1121, allocations: 172.2 kB / 421.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006063/0.1127, allocations: 481.8 kB / 421.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.1127, allocations: 3.938 kB / 421.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009845/0.1137, allocations: 0.5821 MB / 422.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.1138, allocations: 142.8 kB / 422.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1138, allocations: 0 / 422.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1138, allocations: 0 / 422.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.228e-05/0.1139, allocations: 15.94 kB / 422.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1139, allocations: 7.984 kB / 422.6 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.1141, allocations: 15.94 kB / 422.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.1143, allocations: 115.9 kB / 422.7 MB, free: 7.77 MB / 350.1 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.000586/0.1148, allocations: 0.5259 MB / 423.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.115, allocations: 83.48 kB / 423.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001967/0.1152, allocations: 130.4 kB / 423.5 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1152, allocations: 4 kB / 423.5 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1152, allocations: 0 / 423.5 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1152, allocations: 0 / 423.5 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007286/0.1159, allocations: 0.6258 MB / 424.1 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1159, allocations: 3.938 kB / 424.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.116, allocations: 15.98 kB / 424.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.116, allocations: 0 / 424.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.1161, allocations: 27.98 kB / 424.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1161, allocations: 0 / 424.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1161, allocations: 3.938 kB / 424.1 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.1172, allocations: 0.7038 MB / 424.8 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006644/0.1179, allocations: 0.5 MB / 425.3 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.755e-05/0.118, allocations: 23.94 kB / 425.4 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1182, allocations: 23.98 kB / 425.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.1183, allocations: 43.95 kB / 425.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001295/0.1185, allocations: 124 kB / 425.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009726/0.1195, allocations: 0.7251 MB / 426.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1195, allocations: 0 / 426.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003506/0.1198, allocations: 87.95 kB / 426.4 MB, free: 3.984 MB / 350.1 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.0002025/0.12, allocations: 150.7 kB / 426.5 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009692/0.121, allocations: 0.6497 MB / 427.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.121, allocations: 0 / 427.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005886/0.1216, allocations: 0.5327 MB / 427.7 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/0.1224, allocations: 197.6 kB / 427.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1246, allocations: 1.419 MB / 429.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1615/0.2861, allocations: 0.9632 MB / 430.3 MB, free: 22.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/0.2864, allocations: 95.45 kB / 430.4 MB, free: 22.26 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2864, allocations: 0 / 430.4 MB, free: 22.26 MB / 350.1 MB Notification: Performance of Templates: time 0.008429/0.2948, allocations: 5.437 MB / 435.8 MB, free: 21.89 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.808026243932545]