Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 105.4 kB / 18.35 MB, free: 4.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 188.1 kB / 19.29 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.504/1.504, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 55.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1037, allocations: 46.63 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003678/0.1075, allocations: 2.106 MB / 330.8 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.11, allocations: 1.05 MB / 331.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.1103, allocations: 0 / 331.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.1106, allocations: 39.66 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.1107, allocations: 55.5 kB / 332 MB, free: 500 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004845/0.1112, allocations: 127.8 kB / 332.1 MB, free: 372 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/0.1118, allocations: 407.1 kB / 332.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.1121, allocations: 111 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.1131, allocations: 0.9514 MB / 333.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.1134, allocations: 187.2 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.497e-05/0.1136, allocations: 32 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.649e-05/0.1136, allocations: 36 kB / 333.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.1138, allocations: 171.3 kB / 334 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003004/0.1141, allocations: 290 kB / 334.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008807/0.115, allocations: 0.9772 MB / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.115, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.115, allocations: 0 / 335.2 MB, free: 13.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.157e-05/0.1151, allocations: 3.938 kB / 335.2 MB, free: 13.22 MB / 286.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.001793/0.1169, allocations: 1.126 MB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.1169, allocations: 15.89 kB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.1171, allocations: 80 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006443/0.1178, allocations: 428 kB / 336.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.1179, allocations: 12.38 kB / 336.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/0.1179, allocations: 20.38 kB / 336.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006357/0.1186, allocations: 309.5 kB / 337.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.1186, allocations: 0 / 337.2 MB, free: 11.13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.315e-05/0.1186, allocations: 11.98 kB / 337.2 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1186, allocations: 4 kB / 337.2 MB, free: 11.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004315/0.1191, allocations: 211.9 kB / 337.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.1208, allocations: 0.8824 MB / 338.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.1213, allocations: 222.4 kB / 338.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.1216, allocations: 152.8 kB / 338.7 MB, free: 9.594 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.1216, allocations: 0 / 338.7 MB, free: 9.594 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006032/0.1222, allocations: 389.8 kB / 339.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.633e-06/0.1223, allocations: 0 / 339.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001624/0.1239, allocations: 0.7375 MB / 339.8 MB, free: 8.406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.124, allocations: 174.2 kB / 340 MB, free: 8.199 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.1253, allocations: 1.004 MB / 341 MB, free: 7.184 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.1254, allocations: 41.64 kB / 341 MB, free: 7.137 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1255, allocations: 157.8 kB / 341.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.954e-05/0.1256, allocations: 55.3 kB / 341.2 MB, free: 6.926 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002205/0.1259, allocations: 165 kB / 341.4 MB, free: 6.758 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.126, allocations: 342.8 kB / 341.7 MB, free: 6.414 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.1263, allocations: 127.9 kB / 341.8 MB, free: 6.289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002791/0.1266, allocations: 156.2 kB / 342 MB, free: 6.121 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00058/0.1272, allocations: 481.7 kB / 342.5 MB, free: 5.586 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1272, allocations: 0 / 342.5 MB, free: 5.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009564/0.1281, allocations: 0.578 MB / 343 MB, free: 4.977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.1283, allocations: 138.8 kB / 343.2 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1283, allocations: 0 / 343.2 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.123e-05/0.1283, allocations: 4.094 kB / 343.2 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.1285, allocations: 19.98 kB / 343.2 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.1285, allocations: 7.938 kB / 343.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.1287, allocations: 19.89 kB / 343.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.1288, allocations: 115.9 kB / 343.3 MB, free: 4.652 MB / 286.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.0006303/0.1295, allocations: 0.5337 MB / 343.9 MB, free: 4.086 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.569e-05/0.1296, allocations: 79.16 kB / 344 MB, free: 4.008 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.1298, allocations: 126.4 kB / 344.1 MB, free: 3.871 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1298, allocations: 4 kB / 344.1 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1298, allocations: 0 / 344.1 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1298, allocations: 3.984 kB / 344.1 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007284/0.1306, allocations: 0.6258 MB / 344.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1306, allocations: 0 / 344.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.612e-05/0.1306, allocations: 11.98 kB / 344.7 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.1306, allocations: 3.938 kB / 344.7 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.418e-05/0.1307, allocations: 27.98 kB / 344.8 MB, free: 3.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1307, allocations: 4 kB / 344.8 MB, free: 3.141 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1307, allocations: 0 / 344.8 MB, free: 3.141 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.1318, allocations: 0.7025 MB / 345.5 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006944/0.1325, allocations: 0.4918 MB / 346 MB, free: 1.883 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.775e-05/0.1326, allocations: 20 kB / 346 MB, free: 1.863 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001753/0.1328, allocations: 19.98 kB / 346 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.133, allocations: 43.95 kB / 346 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.1331, allocations: 119.9 kB / 346.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009221/0.134, allocations: 0.7406 MB / 346.9 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.134, allocations: 3.938 kB / 346.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.1344, allocations: 87.94 kB / 347 MB, free: 0.8555 MB / 286.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.0001805/0.1346, allocations: 138.7 kB / 347.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009131/0.1355, allocations: 0.6497 MB / 347.8 MB, free: 12 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1355, allocations: 0 / 347.8 MB, free: 12 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005937/0.1361, allocations: 0.5289 MB / 348.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007731/0.1369, allocations: 208 kB / 348.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.1389, allocations: 1.317 MB / 349.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.1395, allocations: 0.9636 MB / 350.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003274/0.1398, allocations: 161.2 kB / 350.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.14, allocations: 75.27 kB / 351 MB, free: 12.66 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.14, allocations: 4 kB / 351 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Templates: time 0.01158/0.1516, allocations: 7.707 MB / 358.7 MB, free: 4.922 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches