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.001338/0.001338, allocations: 69.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001502/0.001502, allocations: 162.5 kB / 24.5 MB, free: 3.711 MB / 14.72 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.442/1.442, allocations: 177.2 MB / 204.9 MB, free: 8.996 MB / 190.1 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 0.001603/0.001603, allocations: 55.66 kB / 325.6 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1009, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003417/0.1043, allocations: 2.008 MB / 380.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002327/0.1067, allocations: 1.01 MB / 381.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.743e-05/0.1068, allocations: 0 / 381.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.1069, allocations: 43.58 kB / 382 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.107, allocations: 47.59 kB / 382 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.1075, allocations: 139.8 kB / 382.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005251/0.108, allocations: 395.1 kB / 382.5 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.1082, allocations: 74.5 kB / 382.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.1093, allocations: 0.9708 MB / 383.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000316/0.1096, allocations: 195.2 kB / 383.8 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.054e-05/0.1097, allocations: 32 kB / 383.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.035e-05/0.1098, allocations: 36 kB / 383.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.1099, allocations: 167.3 kB / 384 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.1102, allocations: 194.6 kB / 384.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1112, allocations: 0.9884 MB / 385.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1112, allocations: 7.938 kB / 385.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1112, allocations: 0 / 385.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.1112, allocations: 0 / 385.2 MB, free: 9.34 MB / 350.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.001339/0.1126, allocations: 1.07 MB / 386.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1126, allocations: 12.03 kB / 386.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.1127, allocations: 84.42 kB / 386.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005678/0.1133, allocations: 374.8 kB / 386.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.1133, allocations: 16.38 kB / 386.7 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.407e-05/0.1134, allocations: 20.38 kB / 386.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007158/0.1141, allocations: 440.2 kB / 387.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1141, allocations: 0 / 387.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.1142, allocations: 19.98 kB / 387.2 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1142, allocations: 4 kB / 387.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005356/0.1147, allocations: 342.7 kB / 387.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.1161, allocations: 0.7418 MB / 388.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.1166, allocations: 313.2 kB / 388.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.1169, allocations: 243.6 kB / 388.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.117, allocations: 0 / 388.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007639/0.1177, allocations: 0.5204 MB / 389.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.1177, allocations: 0 / 389.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001579/0.1193, allocations: 1.004 MB / 390.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.1194, allocations: 178.1 kB / 390.5 MB, free: 3.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.1208, allocations: 1 MB / 391.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.1209, allocations: 33.7 kB / 391.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.121, allocations: 161.9 kB / 391.7 MB, free: 2.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.527e-05/0.1211, allocations: 55.59 kB / 391.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.1214, allocations: 165.3 kB / 391.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1215, allocations: 338.8 kB / 392.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/0.1219, allocations: 254.7 kB / 392.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.1223, allocations: 303 kB / 392.8 MB, free: 1.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.123, allocations: 0.4938 MB / 393.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.123, allocations: 3.938 kB / 393.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001119/0.1241, allocations: 0.7255 MB / 394 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/0.1242, allocations: 134.8 kB / 394.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.1242, allocations: 7.984 kB / 394.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1243, allocations: 3.938 kB / 394.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.528e-05/0.1243, allocations: 16.05 kB / 394.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1244, allocations: 4 kB / 394.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1246, allocations: 27.94 kB / 394.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/0.1247, allocations: 107.9 kB / 394.3 MB, free: 15.54 MB / 366.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.0006455/0.1253, allocations: 0.534 MB / 394.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1254, allocations: 79.53 kB / 394.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002125/0.1257, allocations: 134.5 kB / 395.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1257, allocations: 4 kB / 395.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1257, allocations: 0 / 395.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.1257, allocations: 3.984 kB / 395.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006656/0.1263, allocations: 0.4967 MB / 395.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.1263, allocations: 3.984 kB / 395.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.1264, allocations: 8 kB / 395.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1264, allocations: 0 / 395.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/0.1264, allocations: 23.98 kB / 395.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1264, allocations: 0 / 395.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.1264, allocations: 4 kB / 395.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.1277, allocations: 0.8494 MB / 396.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008624/0.1285, allocations: 0.5008 MB / 397 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.857e-05/0.1286, allocations: 24.12 kB / 397 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.1288, allocations: 23.92 kB / 397 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.129, allocations: 51.95 kB / 397.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.1291, allocations: 111.9 kB / 397.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.1301, allocations: 0.729 MB / 397.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1301, allocations: 0 / 397.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.1305, allocations: 91.94 kB / 398 MB, free: 11.73 MB / 366.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.0001753/0.1306, allocations: 135.2 kB / 398.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.1317, allocations: 0.8114 MB / 398.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1317, allocations: 4 kB / 398.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.1323, allocations: 0.5237 MB / 399.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008235/0.1331, allocations: 206.8 kB / 399.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.1353, allocations: 1.475 MB / 401.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005121/0.1358, allocations: 377.3 kB / 401.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000316/0.1361, allocations: 165.2 kB / 401.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.1363, allocations: 72.36 kB / 401.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1363, allocations: 0 / 401.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of Templates: time 0.01377/0.1501, allocations: 8.343 MB / 410.1 MB, free: 15.52 MB / 382.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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.412244910025038]