Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002124/0.002124, allocations: 178.1 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008768/0.0008767, allocations: 102.5 kB / 272.1 MB, free: 8.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002687, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2762, allocations: 47.57 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003006/0.2793, allocations: 1.754 MB / 378.3 MB, free: 44.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002614/0.282, allocations: 1.359 MB / 379.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2821, allocations: 6.156 kB / 379.7 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.2823, allocations: 25.94 kB / 379.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001152/0.2824, allocations: 47.5 kB / 379.8 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.2829, allocations: 112.5 kB / 379.9 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.2834, allocations: 337.7 kB / 380.2 MB, free: 42.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003287/0.2838, allocations: 106 kB / 380.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.2852, allocations: 0.8739 MB / 381.2 MB, free: 42.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.2855, allocations: 158.3 kB / 381.4 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.259e-05/0.2856, allocations: 8.281 kB / 381.4 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.2856, allocations: 9.281 kB / 381.4 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.2859, allocations: 149.8 kB / 381.5 MB, free: 42.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002845/0.2862, allocations: 284.2 kB / 381.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008342/0.287, allocations: 0.9218 MB / 382.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.287, allocations: 0 / 382.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.287, allocations: 0 / 382.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.287, allocations: 4 kB / 382.7 MB, free: 41.16 MB / 298.7 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.001059/0.2881, allocations: 0.9679 MB / 383.7 MB, free: 40.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.2882, allocations: 8.875 kB / 383.7 MB, free: 40.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.2883, allocations: 80.53 kB / 383.8 MB, free: 40.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004845/0.2888, allocations: 423.6 kB / 384.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.352e-05/0.2889, allocations: 19.28 kB / 384.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.2889, allocations: 19.75 kB / 384.2 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006641/0.2896, allocations: 304 kB / 384.5 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2896, allocations: 3.938 kB / 384.5 MB, free: 39.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.553e-05/0.2897, allocations: 13.53 kB / 384.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2897, allocations: 3.156 kB / 384.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004603/0.2902, allocations: 209.7 kB / 384.8 MB, free: 39.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2915, allocations: 0.8919 MB / 385.6 MB, free: 38.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005387/0.2921, allocations: 217.9 kB / 385.9 MB, free: 38.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003511/0.2925, allocations: 154.7 kB / 386 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.2925, allocations: 1.031 kB / 386 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008569/0.2934, allocations: 386.9 kB / 386.4 MB, free: 38.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.2934, allocations: 0 / 386.4 MB, free: 38.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001499/0.2949, allocations: 0.736 MB / 387.1 MB, free: 37.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.295, allocations: 178.2 kB / 387.3 MB, free: 37.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.2963, allocations: 0.996 MB / 388.3 MB, free: 36.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.2964, allocations: 33.7 kB / 388.3 MB, free: 36.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.2965, allocations: 149.9 kB / 388.5 MB, free: 36.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.961e-05/0.2966, allocations: 59.3 kB / 388.5 MB, free: 36.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.679e-05/0.2966, allocations: 11.94 kB / 388.5 MB, free: 36.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.2969, allocations: 342.8 kB / 388.9 MB, free: 35.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.2971, allocations: 124.4 kB / 389 MB, free: 35.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.2974, allocations: 164.2 kB / 389.2 MB, free: 35.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005233/0.2979, allocations: 473.7 kB / 389.6 MB, free: 34.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2979, allocations: 0 / 389.6 MB, free: 34.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008164/0.2988, allocations: 0.5742 MB / 390.2 MB, free: 34.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.896e-05/0.2989, allocations: 138.8 kB / 390.3 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.2989, allocations: 0 / 390.3 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.2989, allocations: 4 kB / 390.3 MB, free: 34.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.299, allocations: 15.92 kB / 390.4 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.2991, allocations: 7.984 kB / 390.4 MB, free: 34.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.2994, allocations: 43.88 kB / 390.4 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.2995, allocations: 116.8 kB / 390.5 MB, free: 34.04 MB / 298.7 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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.0005538/0.3001, allocations: 0.5263 MB / 391 MB, free: 33.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.432e-05/0.3002, allocations: 79.14 kB / 391.1 MB, free: 33.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.3004, allocations: 138.4 kB / 391.3 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3004, allocations: 0 / 391.3 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3004, allocations: 0 / 391.3 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3004, allocations: 0 / 391.3 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/0.3012, allocations: 0.6218 MB / 391.9 MB, free: 32.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3012, allocations: 48 / 391.9 MB, free: 32.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.363e-05/0.3012, allocations: 15.97 kB / 391.9 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.3012, allocations: 4 kB / 391.9 MB, free: 32.56 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.972e-05/0.3013, allocations: 23.98 kB / 391.9 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3013, allocations: 4 kB / 391.9 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3013, allocations: 0 / 391.9 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009708/0.3023, allocations: 0.7069 MB / 392.6 MB, free: 31.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.3028, allocations: 0.4957 MB / 393.1 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.643e-05/0.3029, allocations: 24 kB / 393.1 MB, free: 31.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.3031, allocations: 23.98 kB / 393.2 MB, free: 31.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.3033, allocations: 47.94 kB / 393.2 MB, free: 31.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.3034, allocations: 119.9 kB / 393.3 MB, free: 31.06 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007671/0.3042, allocations: 0.7251 MB / 394.1 MB, free: 30.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.011e-06/0.3042, allocations: 0 / 394.1 MB, free: 30.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003168/0.3045, allocations: 91.84 kB / 394.2 MB, free: 30.25 MB / 298.7 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.0001999/0.3047, allocations: 142.7 kB / 394.3 MB, free: 30.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007805/0.3055, allocations: 0.6592 MB / 394.9 MB, free: 29.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3055, allocations: 0 / 394.9 MB, free: 29.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/0.306, allocations: 0.5327 MB / 395.5 MB, free: 28.81 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007565/0.3067, allocations: 176.8 kB / 395.7 MB, free: 28.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.3088, allocations: 1.558 MB / 397.2 MB, free: 27.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.3093, allocations: 0.9561 MB / 398.2 MB, free: 26.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003492/0.3096, allocations: 173.2 kB / 398.3 MB, free: 25.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.3098, allocations: 71.3 kB / 398.4 MB, free: 25.83 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3098, allocations: 0 / 398.4 MB, free: 25.83 MB / 298.7 MB Notification: Performance of Templates: time 0.009644/0.3194, allocations: 6.851 MB / 405.3 MB, free: 18.98 MB / 298.7 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","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches