Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_4.0.0_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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 184 kB / 16.72 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.7 MB / 243.2 MB, free: 8.496 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008177/0.0008176, allocations: 97.8 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002801, allocations: 11.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2541, allocations: 50.41 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.001746/0.2559, allocations: 1.744 MB / 406.3 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001681/0.2576, allocations: 1.318 MB / 407.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.66e-05/0.2577, allocations: 0 / 407.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.2579, allocations: 27.78 kB / 407.7 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.611e-05/0.258, allocations: 43.62 kB / 407.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002887/0.2583, allocations: 116.8 kB / 407.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002429/0.2585, allocations: 339.7 kB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.2587, allocations: 102.7 kB / 408.2 MB, free: 27.59 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005836/0.2593, allocations: 0.8732 MB / 409.1 MB, free: 26.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.2594, allocations: 159.3 kB / 409.3 MB, free: 26.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.971e-05/0.2595, allocations: 8 kB / 409.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.631e-05/0.2596, allocations: 8 kB / 409.3 MB, free: 26.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.2597, allocations: 151.4 kB / 409.4 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.2599, allocations: 283.7 kB / 409.7 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004921/0.2604, allocations: 0.9201 MB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2604, allocations: 0 / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.033e-06/0.2604, allocations: 0 / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2604, allocations: 7.938 kB / 410.6 MB, free: 25.18 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.0007211/0.2611, allocations: 0.9669 MB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.2612, allocations: 12.03 kB / 411.6 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.529e-05/0.2613, allocations: 84 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.2616, allocations: 424.1 kB / 412.1 MB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.2616, allocations: 20.38 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.659e-05/0.2617, allocations: 20.36 kB / 412.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.2622, allocations: 301.7 kB / 412.4 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2622, allocations: 7.938 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.2623, allocations: 8 kB / 412.5 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.2623, allocations: 4 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/0.2626, allocations: 211.9 kB / 412.7 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009502/0.2636, allocations: 0.8822 MB / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.264, allocations: 218.5 kB / 413.8 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.2642, allocations: 153.7 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.2642, allocations: 0 / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.2647, allocations: 391 kB / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.2647, allocations: 0 / 414.3 MB, free: 21.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001057/0.2658, allocations: 0.7348 MB / 415 MB, free: 20.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.2658, allocations: 174.2 kB / 415.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009732/0.2668, allocations: 1.004 MB / 416.2 MB, free: 19.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.2668, allocations: 33.7 kB / 416.2 MB, free: 19.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.2669, allocations: 153.8 kB / 416.4 MB, free: 19.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.296e-05/0.267, allocations: 55.36 kB / 416.4 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.267, allocations: 4 kB / 416.5 MB, free: 19.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.2671, allocations: 338.8 kB / 416.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.2673, allocations: 123.9 kB / 416.9 MB, free: 18.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.2676, allocations: 164.2 kB / 417.1 MB, free: 18.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004277/0.268, allocations: 477.7 kB / 417.5 MB, free: 17.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.268, allocations: 0 / 417.5 MB, free: 17.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007102/0.2687, allocations: 0.5742 MB / 418.1 MB, free: 17.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.2688, allocations: 134.8 kB / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2688, allocations: 0 / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.2688, allocations: 4 kB / 418.2 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.79e-05/0.2689, allocations: 19.92 kB / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2689, allocations: 0 / 418.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.2692, allocations: 47.88 kB / 418.3 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.81e-05/0.2693, allocations: 107.9 kB / 418.4 MB, free: 16.96 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.0004021/0.2697, allocations: 0.5415 MB / 419 MB, free: 16.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.2698, allocations: 83.08 kB / 419 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.2699, allocations: 126.4 kB / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2699, allocations: 0 / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2699, allocations: 0 / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2699, allocations: 4 kB / 419.2 MB, free: 16.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005125/0.2705, allocations: 0.6179 MB / 419.8 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2705, allocations: 7.938 kB / 419.8 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.871e-05/0.2705, allocations: 11.98 kB / 419.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2705, allocations: 0 / 419.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.2706, allocations: 27.98 kB / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2706, allocations: 0 / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2706, allocations: 3.984 kB / 419.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008093/0.2714, allocations: 0.7119 MB / 420.5 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004672/0.2719, allocations: 499.7 kB / 421 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.888e-05/0.272, allocations: 24 kB / 421.1 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.2722, allocations: 24.11 kB / 421.1 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.2723, allocations: 59.94 kB / 421.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.2724, allocations: 111.9 kB / 421.2 MB, free: 13.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006766/0.2731, allocations: 0.7251 MB / 422 MB, free: 13.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2731, allocations: 0 / 422 MB, free: 13.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002966/0.2734, allocations: 91.91 kB / 422.1 MB, free: 13.16 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.0001445/0.2736, allocations: 146.7 kB / 422.2 MB, free: 13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007008/0.2743, allocations: 0.6497 MB / 422.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2743, allocations: 0 / 422.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.2747, allocations: 0.5327 MB / 423.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.2754, allocations: 183.4 kB / 423.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.2771, allocations: 1.562 MB / 425.1 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000424/0.2775, allocations: 0.9639 MB / 426.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002715/0.2778, allocations: 161.1 kB / 426.2 MB, free: 8.812 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.2779, allocations: 71.56 kB / 426.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2779, allocations: 3.938 kB / 426.3 MB, free: 8.738 MB / 298.7 MB Notification: Performance of Templates: time 0.008376/0.2863, allocations: 6.841 MB / 433.2 MB, free: 1.898 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches