Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001271/0.001271, allocations: 176.8 kB / 16.41 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.4 MB / 222.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007144/0.0007144, allocations: 88.86 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000298/0.0002981, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2505, allocations: 47.57 MB / 374.5 MB, free: 45.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002192/0.2527, allocations: 1.741 MB / 376.3 MB, free: 44.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.2551, allocations: 1.006 MB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2553, allocations: 6.031 kB / 377.3 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.2555, allocations: 26.66 kB / 377.3 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.2556, allocations: 42.12 kB / 377.4 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.2561, allocations: 80.75 kB / 377.4 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004497/0.2565, allocations: 316.2 kB / 377.8 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002703/0.2568, allocations: 82.91 kB / 377.8 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.2581, allocations: 0.7814 MB / 378.6 MB, free: 42.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002926/0.2584, allocations: 184.7 kB / 378.8 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.381e-05/0.2585, allocations: 9.031 kB / 378.8 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.281e-05/0.2586, allocations: 12.72 kB / 378.8 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.2588, allocations: 147.1 kB / 379 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.259, allocations: 140.6 kB / 379.1 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000797/0.2598, allocations: 0.7982 MB / 379.9 MB, free: 41.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.2598, allocations: 0 / 379.9 MB, free: 41.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.2599, allocations: 0 / 379.9 MB, free: 41.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.2599, allocations: 5.25 kB / 379.9 MB, free: 41.72 MB / 298.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.001259/0.2611, allocations: 0.9699 MB / 380.9 MB, free: 40.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.2612, allocations: 8.469 kB / 380.9 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001966/0.2614, allocations: 83.25 kB / 381 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005934/0.262, allocations: 404 kB / 381.4 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.2621, allocations: 16.78 kB / 381.4 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.505e-05/0.2622, allocations: 19.19 kB / 381.4 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000888/0.2631, allocations: 299.5 kB / 381.7 MB, free: 40.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.2631, allocations: 3.984 kB / 381.7 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.094e-05/0.2632, allocations: 8.625 kB / 381.7 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.2632, allocations: 7.344 kB / 381.7 MB, free: 40.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006831/0.2639, allocations: 206 kB / 381.9 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.2657, allocations: 0.8893 MB / 382.8 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006334/0.2663, allocations: 222.6 kB / 383 MB, free: 39.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.2668, allocations: 152.7 kB / 383.2 MB, free: 39.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.2668, allocations: 5.172 kB / 383.2 MB, free: 39.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007435/0.2676, allocations: 387.3 kB / 383.5 MB, free: 38.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.865e-06/0.2676, allocations: 0 / 383.5 MB, free: 38.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001983/0.2696, allocations: 0.7387 MB / 384.3 MB, free: 38.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.2697, allocations: 176.3 kB / 384.5 MB, free: 38.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/0.2716, allocations: 1.009 MB / 385.5 MB, free: 37.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-05/0.2717, allocations: 29.7 kB / 385.5 MB, free: 37.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.923e-05/0.2718, allocations: 165.7 kB / 385.7 MB, free: 37.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.414e-05/0.2719, allocations: 51.36 kB / 385.7 MB, free: 37.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.111e-05/0.2719, allocations: 8 kB / 385.7 MB, free: 37.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.484e-05/0.272, allocations: 330.8 kB / 386 MB, free: 37.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.2724, allocations: 123.9 kB / 386.2 MB, free: 36.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.2728, allocations: 168.2 kB / 386.3 MB, free: 36.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.2731, allocations: 228.1 kB / 386.5 MB, free: 36.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2731, allocations: 4 kB / 386.5 MB, free: 36.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001162/0.2743, allocations: 0.5701 MB / 387.1 MB, free: 35.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-05/0.2744, allocations: 138.8 kB / 387.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2744, allocations: 4.062 kB / 387.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.2745, allocations: 4 kB / 387.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.2746, allocations: 15.92 kB / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2746, allocations: 4.094 kB / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.2751, allocations: 47.7 kB / 387.3 MB, free: 35.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.2753, allocations: 112.8 kB / 387.4 MB, free: 35.52 MB / 298.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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007378/0.276, allocations: 0.5375 MB / 388 MB, free: 34.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2761, allocations: 79.06 kB / 388.1 MB, free: 34.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.2764, allocations: 130.4 kB / 388.2 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2764, allocations: 0 / 388.2 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.2764, allocations: 3.984 kB / 388.2 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.2765, allocations: 0 / 388.2 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.2774, allocations: 0.6142 MB / 388.8 MB, free: 34.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2774, allocations: 0 / 388.8 MB, free: 34.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.94e-05/0.2775, allocations: 19.98 kB / 388.8 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2775, allocations: 0 / 388.8 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.631e-05/0.2775, allocations: 23.98 kB / 388.8 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2776, allocations: 4 kB / 388.8 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.2776, allocations: 0 / 388.8 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.279, allocations: 0.7061 MB / 389.5 MB, free: 33.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008222/0.2798, allocations: 0.4919 MB / 390 MB, free: 32.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.28, allocations: 24 kB / 390.1 MB, free: 32.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000328/0.2803, allocations: 39.86 kB / 390.1 MB, free: 32.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.2805, allocations: 51.94 kB / 390.2 MB, free: 32.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.2807, allocations: 115.9 kB / 390.3 MB, free: 32.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001232/0.2819, allocations: 0.7289 MB / 391 MB, free: 31.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2819, allocations: 0 / 391 MB, free: 31.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005509/0.2825, allocations: 88 kB / 391.1 MB, free: 31.72 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002606/0.2828, allocations: 150.4 kB / 391.2 MB, free: 31.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.2839, allocations: 0.654 MB / 391.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2839, allocations: 0 / 391.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006386/0.2846, allocations: 0.5288 MB / 392.4 MB, free: 30.28 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.2857, allocations: 171.4 kB / 392.6 MB, free: 30.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002804/0.2885, allocations: 1.58 MB / 394.2 MB, free: 28.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006489/0.2892, allocations: 0.9678 MB / 395.1 MB, free: 27.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.2895, allocations: 91.19 kB / 395.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.2895, allocations: 0 / 395.2 MB, free: 27.42 MB / 298.7 MB Notification: Performance of Templates: time 0.008908/0.2985, allocations: 5.396 MB / 400.6 MB, free: 21.99 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches