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.001123/0.001123, allocations: 109.9 kB / 17.74 MB, free: 5.359 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.001272/0.001272, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.302/1.302, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 47.94 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3038, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003347/0.3072, allocations: 2.106 MB / 403.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.3094, allocations: 1.002 MB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.635e-05/0.3095, allocations: 3.938 kB / 404.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.3097, allocations: 39.66 kB / 404.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.3099, allocations: 55.56 kB / 404.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000402/0.3103, allocations: 119.8 kB / 404.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000479/0.3108, allocations: 423 kB / 405.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.311, allocations: 111 kB / 405.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009114/0.3119, allocations: 0.9592 MB / 406.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.3122, allocations: 195.2 kB / 406.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.923e-05/0.3123, allocations: 36 kB / 406.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.698e-05/0.3124, allocations: 32 kB / 406.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.3125, allocations: 167.3 kB / 406.6 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.3128, allocations: 286.1 kB / 406.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008711/0.3137, allocations: 0.9744 MB / 407.9 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3137, allocations: 4 kB / 407.9 MB, free: 2.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3137, allocations: 3.938 kB / 407.9 MB, free: 2.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.3137, allocations: 0 / 407.9 MB, free: 2.367 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.001349/0.3151, allocations: 1.122 MB / 409 MB, free: 1.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.3151, allocations: 11.89 kB / 409 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3153, allocations: 83.91 kB / 409.1 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004648/0.3157, allocations: 428.1 kB / 409.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.3158, allocations: 20.38 kB / 409.5 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.436e-05/0.3158, allocations: 20.38 kB / 409.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000581/0.3164, allocations: 305.7 kB / 409.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.3165, allocations: 0 / 409.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.3165, allocations: 12 kB / 409.9 MB, free: 264 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.3165, allocations: 4 kB / 409.9 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.3169, allocations: 200.4 kB / 410.1 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.3183, allocations: 0.8901 MB / 411 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.3187, allocations: 222.5 kB / 411.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.319, allocations: 156.8 kB / 411.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.319, allocations: 0 / 411.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000572/0.3196, allocations: 391.6 kB / 411.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.582e-06/0.3196, allocations: 0 / 411.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001448/0.3211, allocations: 0.7335 MB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3212, allocations: 178.1 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001229/0.3224, allocations: 1.012 MB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.3225, allocations: 33.7 kB / 413.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3226, allocations: 157.8 kB / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.433e-05/0.3227, allocations: 55.34 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.3229, allocations: 161.1 kB / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3231, allocations: 338.8 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.3234, allocations: 123.9 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.3237, allocations: 172.2 kB / 414.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.3243, allocations: 473.7 kB / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3243, allocations: 0 / 415.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009185/0.3252, allocations: 0.5819 MB / 415.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3254, allocations: 138.8 kB / 415.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3254, allocations: 0 / 415.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.3254, allocations: 7.984 kB / 415.8 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.3255, allocations: 15.94 kB / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3255, allocations: 0 / 415.9 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.3257, allocations: 23.92 kB / 415.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.3259, allocations: 112 kB / 416 MB, free: 9.801 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.0005945/0.3265, allocations: 0.5414 MB / 416.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.91e-05/0.3266, allocations: 79.06 kB / 416.6 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.3268, allocations: 130.4 kB / 416.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3268, allocations: 0 / 416.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3268, allocations: 0 / 416.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.3268, allocations: 0 / 416.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007043/0.3275, allocations: 0.6219 MB / 417.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3275, allocations: 0 / 417.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.355e-05/0.3276, allocations: 16.12 kB / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3276, allocations: 0 / 417.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.992e-05/0.3276, allocations: 31.98 kB / 417.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3276, allocations: 0 / 417.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3276, allocations: 0 / 417.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3287, allocations: 0.7017 MB / 418.1 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006228/0.3293, allocations: 0.4919 MB / 418.6 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.3295, allocations: 24 kB / 418.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3296, allocations: 19.98 kB / 418.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.3298, allocations: 55.89 kB / 418.7 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.3299, allocations: 115.9 kB / 418.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008805/0.3308, allocations: 0.7289 MB / 419.5 MB, free: 6.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3308, allocations: 0 / 419.5 MB, free: 6.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.3312, allocations: 91.91 kB / 419.6 MB, free: 6.016 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.0001918/0.3314, allocations: 138.7 kB / 419.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008999/0.3323, allocations: 0.6614 MB / 420.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3323, allocations: 0 / 420.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005565/0.3328, allocations: 0.5327 MB / 421 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007697/0.3336, allocations: 204.5 kB / 421.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.3357, allocations: 1.389 MB / 422.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00067/0.3364, allocations: 0.9794 MB / 423.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.3366, allocations: 87.25 kB / 423.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3366, allocations: 0 / 423.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of Templates: time 0.00794/0.3446, allocations: 5.454 MB / 429.1 MB, free: 12.39 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