Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001547/0.001547, allocations: 117.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001965/0.001965, allocations: 200.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3485, allocations: 50.54 MB / 409.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004002/0.3525, allocations: 2.118 MB / 411.4 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.3551, allocations: 1.045 MB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001659/0.3553, allocations: 4 kB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.3556, allocations: 31.66 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.3558, allocations: 59.52 kB / 412.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.3563, allocations: 127.8 kB / 412.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006315/0.357, allocations: 411 kB / 413 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.3572, allocations: 114 kB / 413.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001203/0.3585, allocations: 0.967 MB / 414.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00035/0.3588, allocations: 195.2 kB / 414.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.3589, allocations: 36 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.3591, allocations: 32 kB / 414.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.3593, allocations: 163.4 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003421/0.3596, allocations: 290.1 kB / 414.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000951/0.3606, allocations: 0.9693 MB / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.3606, allocations: 0 / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.3606, allocations: 0 / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.3606, allocations: 0 / 415.8 MB, free: 11.04 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.001126/0.3618, allocations: 1.116 MB / 416.9 MB, free: 9.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3618, allocations: 12.02 kB / 416.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.3619, allocations: 87.91 kB / 417 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.3624, allocations: 428.1 kB / 417.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.3624, allocations: 24.3 kB / 417.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.3625, allocations: 20.38 kB / 417.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005797/0.3631, allocations: 297.5 kB / 417.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3631, allocations: 3.984 kB / 417.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.3631, allocations: 12 kB / 417.8 MB, free: 8.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.3631, allocations: 8 kB / 417.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/0.3636, allocations: 207.9 kB / 418 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001266/0.3649, allocations: 0.8785 MB / 418.8 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/0.3653, allocations: 218.4 kB / 419.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.3656, allocations: 164.9 kB / 419.2 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.3657, allocations: 7.938 kB / 419.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005792/0.3663, allocations: 385.8 kB / 419.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.3663, allocations: 3.938 kB / 419.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00135/0.3676, allocations: 0.7404 MB / 420.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.3677, allocations: 174.2 kB / 420.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.3689, allocations: 0.9961 MB / 421.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.926e-05/0.369, allocations: 37.7 kB / 421.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.3691, allocations: 161.7 kB / 421.7 MB, free: 4.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-05/0.3692, allocations: 59.34 kB / 421.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002034/0.3694, allocations: 165 kB / 421.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3696, allocations: 342.7 kB / 422.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002626/0.3698, allocations: 120 kB / 422.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.3701, allocations: 168.2 kB / 422.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000572/0.3707, allocations: 469.8 kB / 423 MB, free: 3.398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3707, allocations: 4 kB / 423 MB, free: 3.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009382/0.3717, allocations: 0.5858 MB / 423.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.3718, allocations: 130.8 kB / 423.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3718, allocations: 7.984 kB / 423.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.3718, allocations: 4.062 kB / 423.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.675e-05/0.3719, allocations: 16 kB / 423.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3719, allocations: 3.984 kB / 423.7 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.3721, allocations: 15.94 kB / 423.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/0.3722, allocations: 115.9 kB / 423.9 MB, free: 2.465 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.0005448/0.3728, allocations: 0.5414 MB / 424.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.465e-05/0.3729, allocations: 79.05 kB / 424.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000178/0.3731, allocations: 134.4 kB / 424.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3731, allocations: 0 / 424.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3731, allocations: 0 / 424.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3731, allocations: 0 / 424.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006478/0.3738, allocations: 0.6258 MB / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3738, allocations: 0 / 425.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.272e-05/0.3738, allocations: 12 kB / 425.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3738, allocations: 0 / 425.3 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.3739, allocations: 35.97 kB / 425.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3739, allocations: 0 / 425.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3739, allocations: 0 / 425.3 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.375, allocations: 0.7018 MB / 426 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006171/0.3756, allocations: 0.4919 MB / 426.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.919e-05/0.3757, allocations: 31.92 kB / 426.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.3759, allocations: 15.98 kB / 426.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.376, allocations: 51.95 kB / 426.6 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000114/0.3761, allocations: 116 kB / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009188/0.3771, allocations: 0.7251 MB / 427.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3771, allocations: 0 / 427.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.3774, allocations: 91.91 kB / 427.5 MB, free: 14.68 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.0002225/0.3777, allocations: 138.7 kB / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009427/0.3786, allocations: 0.6576 MB / 428.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3786, allocations: 0 / 428.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005438/0.3792, allocations: 0.5249 MB / 428.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007365/0.3799, allocations: 201.6 kB / 429 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.382, allocations: 1.329 MB / 430.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007057/0.3827, allocations: 0.9675 MB / 431.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003581/0.3831, allocations: 165.2 kB / 431.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.3833, allocations: 75.28 kB / 431.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3833, allocations: 0 / 431.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01273/0.396, allocations: 7.723 MB / 439.3 MB, free: 2.777 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches