Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.00203/0.00203, allocations: 111.7 kB / 17.73 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.002832/0.002832, allocations: 188.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.757/1.757, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 51.92 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1295, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004267/0.1339, allocations: 2.111 MB / 377.3 MB, free: 2.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003037/0.1369, allocations: 1.061 MB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001434/0.1371, allocations: 4 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002511/0.1374, allocations: 35.59 kB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.1376, allocations: 47.58 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005808/0.1381, allocations: 127.8 kB / 378.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007813/0.1389, allocations: 411.1 kB / 378.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000336/0.1393, allocations: 111 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2388/0.3781, allocations: 0.9584 MB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003216/0.3785, allocations: 197.2 kB / 380.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.3786, allocations: 35.25 kB / 380.2 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.956e-05/0.3787, allocations: 34.97 kB / 380.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.3789, allocations: 161.8 kB / 380.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.3791, allocations: 289 kB / 380.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.3802, allocations: 0.9794 MB / 381.7 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3802, allocations: 0.8125 kB / 381.7 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3803, allocations: 0 / 381.7 MB, free: 9.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.3803, allocations: 0 / 381.7 MB, free: 9.984 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.001352/0.3816, allocations: 1.113 MB / 382.8 MB, free: 9.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.441e-05/0.3817, allocations: 16.8 kB / 382.8 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002198/0.3819, allocations: 80.73 kB / 382.9 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.3825, allocations: 434 kB / 383.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.78e-05/0.3826, allocations: 16.25 kB / 383.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.01e-05/0.3827, allocations: 19.44 kB / 383.3 MB, free: 8.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008092/0.3835, allocations: 300 kB / 383.6 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3835, allocations: 3.938 kB / 383.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.353e-05/0.3836, allocations: 9.578 kB / 383.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.3836, allocations: 6.812 kB / 383.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005278/0.3841, allocations: 209.5 kB / 383.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.3857, allocations: 0.8868 MB / 384.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.3862, allocations: 223.3 kB / 385 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.3866, allocations: 156.6 kB / 385.1 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.3866, allocations: 4.641 kB / 385.1 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007658/0.3874, allocations: 381.6 kB / 385.5 MB, free: 8.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.3874, allocations: 0 / 385.5 MB, free: 8.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001415/0.3888, allocations: 0.7351 MB / 386.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.3889, allocations: 182.5 kB / 386.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/0.3903, allocations: 0.9963 MB / 387.4 MB, free: 7.289 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.32e-05/0.3904, allocations: 36.36 kB / 387.4 MB, free: 7.254 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.3905, allocations: 154.5 kB / 387.6 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.519e-05/0.3906, allocations: 54.61 kB / 387.6 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.3909, allocations: 165.1 kB / 387.8 MB, free: 7.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.391, allocations: 341.5 kB / 388.1 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.3913, allocations: 132.4 kB / 388.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.3916, allocations: 160.7 kB / 388.4 MB, free: 6.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006326/0.3923, allocations: 473.3 kB / 388.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3923, allocations: 0.625 kB / 388.9 MB, free: 6.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001/0.3933, allocations: 0.5883 MB / 389.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-05/0.3934, allocations: 134.2 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.3934, allocations: 1.156 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.238e-05/0.3934, allocations: 1.859 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.3935, allocations: 17.67 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.3936, allocations: 2.812 kB / 389.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.3938, allocations: 27.67 kB / 389.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.3939, allocations: 113.8 kB / 389.8 MB, free: 5.715 MB / 318.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.0006353/0.3946, allocations: 0.5302 MB / 390.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.3947, allocations: 82.53 kB / 390.4 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.395, allocations: 139.1 kB / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.395, allocations: 1.344 kB / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.395, allocations: 0 / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.395, allocations: 2.453 kB / 390.5 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009267/0.3959, allocations: 0.6264 MB / 391.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.396, allocations: 0 / 391.1 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-05/0.396, allocations: 11.59 kB / 391.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.396, allocations: 1.531 kB / 391.2 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.097e-05/0.3961, allocations: 30.47 kB / 391.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.3961, allocations: 1.312 kB / 391.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3961, allocations: 0 / 391.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.3972, allocations: 0.7052 MB / 391.9 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005798/0.3978, allocations: 0.4896 MB / 392.4 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3979, allocations: 19.81 kB / 392.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3981, allocations: 16.56 kB / 392.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.3983, allocations: 50.53 kB / 392.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.3984, allocations: 119.4 kB / 392.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001031/0.3994, allocations: 0.7244 MB / 393.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3994, allocations: 0 / 393.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004025/0.3999, allocations: 94.12 kB / 393.4 MB, free: 3.684 MB / 318.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.0001579/0.4, allocations: 135.3 kB / 393.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008389/0.4009, allocations: 0.6632 MB / 394.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4009, allocations: 1.438 kB / 394.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004755/0.4014, allocations: 0.5296 MB / 394.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008755/0.4022, allocations: 204.5 kB / 394.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.4042, allocations: 1.324 MB / 396.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/0.4048, allocations: 0.9601 MB / 397.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004247/0.4052, allocations: 162.4 kB / 397.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.4054, allocations: 79.03 kB / 397.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4054, allocations: 0 / 397.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of Templates: time 0.01347/0.4189, allocations: 7.742 MB / 405.2 MB, free: 14.38 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches