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.001178/0.001179, allocations: 110 kB / 18.25 MB, free: 4.898 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.00125/0.00125, allocations: 195.5 kB / 19.18 MB, free: 3.977 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.436/1.436, allocations: 205.1 MB / 225 MB, free: 12.3 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.00139/0.001391, allocations: 59.91 kB / 281.3 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1009, allocations: 46.62 MB / 327.9 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004275/0.1052, allocations: 2.108 MB / 330.1 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002844/0.1081, allocations: 1.057 MB / 331.1 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.1084, allocations: 4 kB / 331.1 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000222/0.1087, allocations: 31.66 kB / 331.1 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002197/0.1089, allocations: 51.52 kB / 331.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005494/0.1094, allocations: 127.8 kB / 331.3 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006449/0.1101, allocations: 407.1 kB / 331.7 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.1104, allocations: 111.1 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.1115, allocations: 0.9358 MB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.1118, allocations: 203.2 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.112, allocations: 32 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1121, allocations: 40 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.1123, allocations: 167.3 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003488/0.1127, allocations: 286.1 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009778/0.1137, allocations: 0.9658 MB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1137, allocations: 0 / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1137, allocations: 0 / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.1137, allocations: 0 / 334.4 MB, free: 13.95 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.002007/0.1157, allocations: 1.111 MB / 335.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.1158, allocations: 15.89 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.116, allocations: 83.98 kB / 335.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006146/0.1166, allocations: 436 kB / 336.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.1167, allocations: 12.38 kB / 336.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-05/0.1168, allocations: 20.38 kB / 336.1 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007011/0.1175, allocations: 309.3 kB / 336.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1175, allocations: 0 / 336.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.721e-05/0.1175, allocations: 8 kB / 336.4 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.1176, allocations: 4 kB / 336.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.118, allocations: 219.8 kB / 336.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.1196, allocations: 0.8902 MB / 337.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.12, allocations: 218.5 kB / 337.7 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.1204, allocations: 160.8 kB / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.488e-05/0.1204, allocations: 0 / 337.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006503/0.1211, allocations: 381.9 kB / 338.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.1211, allocations: 0 / 338.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00143/0.1225, allocations: 0.7374 MB / 339 MB, free: 9.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1226, allocations: 182.3 kB / 339.2 MB, free: 8.91 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001536/0.1242, allocations: 1.004 MB / 340.2 MB, free: 7.895 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.1243, allocations: 41.69 kB / 340.2 MB, free: 7.848 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1244, allocations: 153.8 kB / 340.4 MB, free: 7.695 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.275e-05/0.1245, allocations: 51.36 kB / 340.4 MB, free: 7.645 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002546/0.1247, allocations: 173 kB / 340.6 MB, free: 7.469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1249, allocations: 342.8 kB / 340.9 MB, free: 7.125 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1252, allocations: 120 kB / 341 MB, free: 7.008 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.1255, allocations: 168.2 kB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006036/0.1261, allocations: 481.6 kB / 341.7 MB, free: 6.293 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1261, allocations: 0 / 341.7 MB, free: 6.293 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009678/0.1271, allocations: 0.582 MB / 342.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.202e-05/0.1272, allocations: 130.8 kB / 342.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.1272, allocations: 4 kB / 342.4 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1272, allocations: 0 / 342.4 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.787e-05/0.1273, allocations: 15.94 kB / 342.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1273, allocations: 3.984 kB / 342.4 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.1276, allocations: 23.91 kB / 342.4 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.1277, allocations: 115.9 kB / 342.6 MB, free: 5.367 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.0006081/0.1284, allocations: 0.5298 MB / 343.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.1285, allocations: 75.16 kB / 343.2 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002159/0.1287, allocations: 134.3 kB / 343.3 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1287, allocations: 0 / 343.3 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.1288, allocations: 0 / 343.3 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1288, allocations: 4 kB / 343.3 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007486/0.1295, allocations: 0.6257 MB / 343.9 MB, free: 3.906 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1295, allocations: 8 kB / 343.9 MB, free: 3.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.1296, allocations: 8 kB / 343.9 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.693e-06/0.1296, allocations: 3.984 kB / 343.9 MB, free: 3.887 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.1297, allocations: 28.11 kB / 344 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1297, allocations: 4 kB / 344 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1297, allocations: 0 / 344 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.1308, allocations: 0.6985 MB / 344.7 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006667/0.1315, allocations: 0.5035 MB / 345.2 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.1316, allocations: 24 kB / 345.2 MB, free: 2.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1318, allocations: 15.98 kB / 345.2 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.132, allocations: 47.95 kB / 345.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.1321, allocations: 119.9 kB / 345.4 MB, free: 2.387 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009799/0.1331, allocations: 0.7251 MB / 346.1 MB, free: 1.664 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1331, allocations: 0 / 346.1 MB, free: 1.664 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.1335, allocations: 87.94 kB / 346.2 MB, free: 1.578 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.0001848/0.1337, allocations: 146.7 kB / 346.3 MB, free: 1.426 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000981/0.1347, allocations: 0.6653 MB / 347 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1347, allocations: 0 / 347 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005613/0.1353, allocations: 0.521 MB / 347.5 MB, free: 144 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008952/0.1362, allocations: 204.9 kB / 347.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.1387, allocations: 1.408 MB / 349.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007391/0.1394, allocations: 0.9636 MB / 350.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.1397, allocations: 95.25 kB / 350.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1397, allocations: 0 / 350.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of Templates: time 0.009738/0.1495, allocations: 5.428 MB / 355.6 MB, free: 7.934 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 -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