Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001753/0.001753, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.468/1.468, allocations: 230.4 MB / 250 MB, free: 9.008 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 67.83 kB / 367.3 MB, free: 7.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2933, allocations: 53.3 MB / 420.6 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004948/0.2983, allocations: 2.141 MB / 422.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003449/0.3017, allocations: 1.045 MB / 423.8 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.3019, allocations: 3.938 kB / 423.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002159/0.3021, allocations: 39.64 kB / 423.9 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.3022, allocations: 55.58 kB / 423.9 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.3027, allocations: 123.8 kB / 424.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005215/0.3032, allocations: 395.1 kB / 424.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.3034, allocations: 83.05 kB / 424.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.3045, allocations: 0.9669 MB / 425.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.3048, allocations: 207.2 kB / 425.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.149e-05/0.3049, allocations: 39.98 kB / 425.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.928e-05/0.305, allocations: 32 kB / 425.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.3051, allocations: 163.3 kB / 425.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.3054, allocations: 286.1 kB / 426.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.3065, allocations: 0.9804 MB / 427.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3065, allocations: 0 / 427.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3065, allocations: 0 / 427.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.3065, allocations: 3.938 kB / 427.2 MB, free: 1.758 MB / 334.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.001555/0.308, allocations: 1.142 MB / 428.3 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.3081, allocations: 12.03 kB / 428.3 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.3082, allocations: 84.42 kB / 428.4 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006425/0.3089, allocations: 444.7 kB / 428.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.3089, allocations: 16.36 kB / 428.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.309, allocations: 20.38 kB / 428.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/0.3096, allocations: 305.5 kB / 429.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3096, allocations: 0 / 429.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.288e-05/0.3097, allocations: 8 kB / 429.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3097, allocations: 4 kB / 429.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006015/0.3103, allocations: 215.9 kB / 429.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.3118, allocations: 0.8864 MB / 430.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.3122, allocations: 166.5 kB / 430.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.3125, allocations: 123.7 kB / 430.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.3125, allocations: 0 / 430.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007033/0.3132, allocations: 402 kB / 431 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.893e-06/0.3132, allocations: 0 / 431 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001476/0.3147, allocations: 0.7347 MB / 431.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002595/0.315, allocations: 178.1 kB / 431.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001669/0.3166, allocations: 1.004 MB / 432.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.3167, allocations: 33.7 kB / 432.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.3168, allocations: 161.9 kB / 433.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.392e-05/0.3169, allocations: 59.58 kB / 433.1 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.3172, allocations: 169.3 kB / 433.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3173, allocations: 334.8 kB / 433.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.3176, allocations: 120 kB / 433.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003157/0.3179, allocations: 172.2 kB / 433.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/0.3186, allocations: 481.7 kB / 434.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3186, allocations: 0 / 434.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001042/0.3196, allocations: 0.5744 MB / 435 MB, free: 9.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/0.3198, allocations: 138.7 kB / 435.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.3198, allocations: 0 / 435.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3198, allocations: 4 kB / 435.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.418e-05/0.3199, allocations: 15.92 kB / 435.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.3199, allocations: 8.062 kB / 435.1 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.3201, allocations: 23.94 kB / 435.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001489/0.3203, allocations: 111.9 kB / 435.3 MB, free: 9.223 MB / 350.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.0006327/0.3209, allocations: 0.5336 MB / 435.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.321, allocations: 87.52 kB / 435.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.3213, allocations: 126.4 kB / 436 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.3213, allocations: 4 kB / 436 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3213, allocations: 0 / 436 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3213, allocations: 0 / 436 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007936/0.3221, allocations: 0.6297 MB / 436.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3221, allocations: 0 / 436.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.772e-05/0.3221, allocations: 11.98 kB / 436.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3221, allocations: 128 / 436.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.3222, allocations: 27.98 kB / 436.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3222, allocations: 0 / 436.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3222, allocations: 4 kB / 436.7 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3234, allocations: 0.7136 MB / 437.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007336/0.3241, allocations: 0.4961 MB / 437.9 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001248/0.3243, allocations: 24 kB / 437.9 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.3244, allocations: 11.98 kB / 437.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.3246, allocations: 52.14 kB / 438 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.3248, allocations: 115.9 kB / 438.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001086/0.3258, allocations: 0.7328 MB / 438.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3258, allocations: 0 / 438.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004273/0.3263, allocations: 87.94 kB / 438.9 MB, free: 5.438 MB / 350.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.0002802/0.3266, allocations: 138.8 kB / 439 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.3276, allocations: 0.5442 MB / 439.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3276, allocations: 3.938 kB / 439.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006163/0.3282, allocations: 397.5 kB / 440 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008948/0.3291, allocations: 195.7 kB / 440.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.3318, allocations: 1.351 MB / 441.5 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009331/0.3328, allocations: 0.9636 MB / 442.5 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004235/0.3332, allocations: 161.2 kB / 442.6 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.3334, allocations: 79.28 kB / 442.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3334, allocations: 0 / 442.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of Templates: time 0.01422/0.3476, allocations: 7.751 MB / 450.5 MB, free: 9.754 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches