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.00156/0.00156, allocations: 103.5 kB / 18.4 MB, free: 4.656 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.001808/0.001808, allocations: 187 kB / 19.34 MB, free: 3.734 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.453/1.453, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001544/0.001544, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1092, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003812/0.113, allocations: 2.106 MB / 377.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002549/0.1156, allocations: 1.061 MB / 379 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.1158, allocations: 4 kB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.116, allocations: 35.59 kB / 379 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.1162, allocations: 43.59 kB / 379.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004823/0.1167, allocations: 127.8 kB / 379.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.1172, allocations: 415.1 kB / 379.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.1175, allocations: 111 kB / 379.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2434/0.3609, allocations: 0.9636 MB / 380.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.3613, allocations: 195.4 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.3614, allocations: 38.72 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-05/0.3615, allocations: 34.12 kB / 380.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.3617, allocations: 160.7 kB / 381.1 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.3619, allocations: 286.2 kB / 381.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009545/0.3629, allocations: 0.9781 MB / 382.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3629, allocations: 0 / 382.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.085e-06/0.3629, allocations: 1.375 kB / 382.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.3629, allocations: 3.344 kB / 382.4 MB, free: 10.03 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.001257/0.3642, allocations: 1.112 MB / 383.5 MB, free: 9.238 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3642, allocations: 16.91 kB / 383.5 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.3644, allocations: 83.84 kB / 383.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00049/0.3649, allocations: 427 kB / 384 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.3649, allocations: 14.19 kB / 384 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.365, allocations: 24.34 kB / 384 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006099/0.3656, allocations: 301.4 kB / 384.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3656, allocations: 3.938 kB / 384.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.55e-05/0.3657, allocations: 8.719 kB / 384.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.3657, allocations: 4.297 kB / 384.3 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.3661, allocations: 215.4 kB / 384.5 MB, free: 8.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.3675, allocations: 0.8841 MB / 385.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004425/0.3679, allocations: 220.5 kB / 385.6 MB, free: 8.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.3682, allocations: 157 kB / 385.8 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3682, allocations: 1.812 kB / 385.8 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.3688, allocations: 382.6 kB / 386.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.3689, allocations: 1.469 kB / 386.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001357/0.3702, allocations: 0.7407 MB / 386.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.3703, allocations: 174.3 kB / 387.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.3716, allocations: 1.001 MB / 388.1 MB, free: 7.305 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.3717, allocations: 36.92 kB / 388.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.468e-05/0.3718, allocations: 158 kB / 388.3 MB, free: 7.141 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.3719, allocations: 57.06 kB / 388.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.3721, allocations: 165.4 kB / 388.5 MB, free: 7.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.872e-05/0.3722, allocations: 332.9 kB / 388.8 MB, free: 6.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.3725, allocations: 123.6 kB / 388.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.3728, allocations: 167.3 kB / 389.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005316/0.3733, allocations: 481.6 kB / 389.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.3733, allocations: 0.75 kB / 389.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009327/0.3743, allocations: 0.5822 MB / 390.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.791e-05/0.3744, allocations: 136.7 kB / 390.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3744, allocations: 2.031 kB / 390.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.3744, allocations: 2.906 kB / 390.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.737e-05/0.3745, allocations: 19.78 kB / 390.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.343e-05/0.3745, allocations: 2.984 kB / 390.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.3747, allocations: 23.19 kB / 390.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.3749, allocations: 113.8 kB / 390.5 MB, free: 5.727 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.0005662/0.3755, allocations: 0.5352 MB / 391 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.985e-05/0.3756, allocations: 81.56 kB / 391.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002074/0.3758, allocations: 133.1 kB / 391.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3758, allocations: 0.6094 kB / 391.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.3758, allocations: 1.938 kB / 391.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006627/0.3765, allocations: 0.4888 MB / 391.7 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.3766, allocations: 20.28 kB / 391.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.3768, allocations: 18.28 kB / 391.7 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.3769, allocations: 52.72 kB / 391.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001053/0.378, allocations: 0.9246 MB / 392.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001151/0.3792, allocations: 0.8482 MB / 393.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004105/0.3796, allocations: 286.2 kB / 393.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.3806, allocations: 0.7295 MB / 394.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of Backend: time 7.11e-07/0.3806, allocations: 0 / 394.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.3817, allocations: 0.5998 MB / 395.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of SimCode: time 0.002664/0.3844, allocations: 2.02 MB / 397.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of Templates: time 0.01356/0.3979, allocations: 7.995 MB / 405.2 MB, free: 14.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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