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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001101/0.001101, allocations: 189.5 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2582, allocations: 49.42 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003067/0.2613, allocations: 2.116 MB / 403.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.2633, allocations: 1.009 MB / 404.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.479e-05/0.2634, allocations: 0 / 404.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.2635, allocations: 35.66 kB / 404.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001071/0.2636, allocations: 59.5 kB / 404.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003458/0.264, allocations: 123.8 kB / 404.7 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.2644, allocations: 415 kB / 405.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.2646, allocations: 111.1 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008203/0.2655, allocations: 0.9592 MB / 406.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.2657, allocations: 199.2 kB / 406.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.516e-05/0.2658, allocations: 36 kB / 406.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.935e-05/0.2659, allocations: 36 kB / 406.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.266, allocations: 155.4 kB / 406.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.2663, allocations: 286.1 kB / 406.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007272/0.267, allocations: 0.9743 MB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.267, allocations: 0 / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.267, allocations: 7.938 kB / 407.9 MB, free: 2.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2671, allocations: 4 kB / 407.9 MB, free: 2.352 MB / 318.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.001127/0.2682, allocations: 1.115 MB / 409 MB, free: 1.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2682, allocations: 11.89 kB / 409 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001195/0.2684, allocations: 83.91 kB / 409.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.2688, allocations: 436 kB / 409.5 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.2689, allocations: 16.38 kB / 409.5 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.2689, allocations: 20.38 kB / 409.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005413/0.2695, allocations: 297.8 kB / 409.9 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.2695, allocations: 4 kB / 409.9 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.2696, allocations: 8 kB / 409.9 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2696, allocations: 4 kB / 409.9 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004084/0.27, allocations: 212.4 kB / 410.1 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.2712, allocations: 0.8901 MB / 411 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.2716, allocations: 218.6 kB / 411.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.2719, allocations: 164.7 kB / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2719, allocations: 0 / 411.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000529/0.2725, allocations: 381.6 kB / 411.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2725, allocations: 0 / 411.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001248/0.2737, allocations: 0.7412 MB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.95e-05/0.2738, allocations: 178.2 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.275, allocations: 0.9961 MB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.275, allocations: 41.69 kB / 413.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.2752, allocations: 153.8 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.058e-05/0.2752, allocations: 63.22 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.2754, allocations: 165.1 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.2756, allocations: 338.8 kB / 414.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.2758, allocations: 120 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.2761, allocations: 172.2 kB / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.2766, allocations: 473.7 kB / 415.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2767, allocations: 0 / 415.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000881/0.2775, allocations: 0.5857 MB / 415.7 MB, free: 10.1 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/0.2776, allocations: 134.8 kB / 415.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2777, allocations: 4 kB / 415.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.2777, allocations: 0 / 415.8 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.951e-05/0.2778, allocations: 12 kB / 415.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2778, allocations: 3.984 kB / 415.9 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.278, allocations: 23.94 kB / 415.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.2781, allocations: 112 kB / 416 MB, free: 9.789 MB / 334.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.0005115/0.2786, allocations: 0.5375 MB / 416.5 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.93e-05/0.2787, allocations: 79.06 kB / 416.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.2789, allocations: 130.4 kB / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.2789, allocations: 0 / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2789, allocations: 0 / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2789, allocations: 4 kB / 416.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006237/0.2796, allocations: 0.6219 MB / 417.4 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2796, allocations: 4 kB / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.18e-05/0.2796, allocations: 12 kB / 417.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2796, allocations: 3.984 kB / 417.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.2797, allocations: 32.11 kB / 417.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2797, allocations: 0 / 417.4 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2797, allocations: 3.938 kB / 417.4 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009923/0.2807, allocations: 0.694 MB / 418.1 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006198/0.2813, allocations: 0.4958 MB / 418.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.705e-05/0.2814, allocations: 20 kB / 418.6 MB, free: 7.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.2816, allocations: 19.98 kB / 418.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.2817, allocations: 51.98 kB / 418.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.2818, allocations: 119.9 kB / 418.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008378/0.2827, allocations: 0.7251 MB / 419.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.2827, allocations: 0 / 419.5 MB, free: 6.098 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.283, allocations: 91.84 kB / 419.6 MB, free: 6.008 MB / 334.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.0001624/0.2832, allocations: 154.6 kB / 419.8 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008315/0.284, allocations: 0.6497 MB / 420.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.284, allocations: 0 / 420.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005335/0.2846, allocations: 0.5327 MB / 421 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007477/0.2853, allocations: 202.9 kB / 421.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.2872, allocations: 1.393 MB / 422.5 MB, free: 2.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005871/0.2878, allocations: 0.9677 MB / 423.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.2881, allocations: 99.23 kB / 423.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2881, allocations: 0 / 423.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of Templates: time 0.007101/0.2952, allocations: 5.43 MB / 429 MB, free: 12.4 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches