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.NXFER.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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 178.2 kB / 16.71 MB, free: 5.062 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.471/1.471, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007624/0.0007623, allocations: 97.81 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 7.938 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2516, allocations: 50.41 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001229/0.2529, allocations: 1.201 MB / 405.8 MB, free: 30.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2543, allocations: 1.147 MB / 406.9 MB, free: 28.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.876e-05/0.2544, allocations: 4 kB / 406.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.952e-05/0.2545, allocations: 3.984 kB / 406.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.557e-05/0.2545, allocations: 20.72 kB / 406.9 MB, free: 28.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.2547, allocations: 36.59 kB / 407 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.2548, allocations: 104.5 kB / 407.1 MB, free: 28.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.255, allocations: 25.61 kB / 407.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004042/0.2554, allocations: 0.5419 MB / 407.6 MB, free: 28.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.759e-05/0.2555, allocations: 67.7 kB / 407.7 MB, free: 28.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.2555, allocations: 4.812 kB / 407.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.714e-05/0.2555, allocations: 0 / 407.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.926e-05/0.2556, allocations: 60.83 kB / 407.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.524e-05/0.2557, allocations: 136.8 kB / 407.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.256, allocations: 354.7 kB / 408.3 MB, free: 27.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.256, allocations: 1.062 kB / 408.3 MB, free: 27.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.256, allocations: 3.938 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.256, allocations: 0 / 408.3 MB, free: 27.54 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004445/0.2564, allocations: 0.6565 MB / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2565, allocations: 9.188 kB / 408.9 MB, free: 26.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.2565, allocations: 36.56 kB / 409 MB, free: 26.77 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.2567, allocations: 278.3 kB / 409.2 MB, free: 26.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.2568, allocations: 11.91 kB / 409.2 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.2568, allocations: 8.375 kB / 409.3 MB, free: 26.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.2571, allocations: 133.8 kB / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2571, allocations: 0 / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.2571, allocations: 4 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2571, allocations: 0 / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2572, allocations: 59.95 kB / 409.4 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004889/0.2577, allocations: 466.2 kB / 409.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.2579, allocations: 103.1 kB / 410 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.258, allocations: 88.88 kB / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.2581, allocations: 0 / 410.1 MB, free: 25.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000258/0.2583, allocations: 202.7 kB / 410.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.2583, allocations: 0 / 410.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006171/0.259, allocations: 475.8 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.259, allocations: 174.3 kB / 410.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004458/0.2595, allocations: 0.509 MB / 411.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.2595, allocations: 33.7 kB / 411.5 MB, free: 24.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.2595, allocations: 101 kB / 411.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.967e-05/0.2596, allocations: 27.69 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/0.2596, allocations: 4 kB / 411.6 MB, free: 23.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/0.2596, allocations: 326.8 kB / 411.9 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.2598, allocations: 59.91 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.2599, allocations: 69.69 kB / 412 MB, free: 23.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.2601, allocations: 351.3 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2601, allocations: 0 / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004019/0.2605, allocations: 392.8 kB / 412.8 MB, free: 22.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.084e-05/0.2606, allocations: 118.8 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.2606, allocations: 0 / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.2606, allocations: 4 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.826e-05/0.2606, allocations: 3.984 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.2606, allocations: 0 / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.2608, allocations: 23.97 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.193e-05/0.2608, allocations: 59.92 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * 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.0002345/0.2611, allocations: 366.7 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.2611, allocations: 39.53 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-05/0.2612, allocations: 67.14 kB / 413.4 MB, free: 21.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2612, allocations: 7.875 kB / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2612, allocations: 0 / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2612, allocations: 0 / 413.4 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007083/0.262, allocations: 0.8097 MB / 414.3 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.262, allocations: 8 kB / 414.3 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-06/0.262, allocations: 3.984 kB / 414.3 MB, free: 21.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.262, allocations: 0 / 414.3 MB, free: 21.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.546e-05/0.262, allocations: 19.98 kB / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.262, allocations: 0 / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.262, allocations: 3.938 kB / 414.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004642/0.2625, allocations: 0.5445 MB / 414.8 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/0.2627, allocations: 248.5 kB / 415.1 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.2628, allocations: 12 kB / 415.1 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2629, allocations: 11.98 kB / 415.1 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.731e-05/0.263, allocations: 23.92 kB / 415.1 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.2631, allocations: 63.92 kB / 415.2 MB, free: 20.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003339/0.2634, allocations: 382.9 kB / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2634, allocations: 0 / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002358/0.2637, allocations: 40 kB / 415.6 MB, free: 19.62 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * 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.000112/0.2638, allocations: 123 kB / 415.7 MB, free: 19.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003827/0.2642, allocations: 437.5 kB / 416.1 MB, free: 19.01 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2642, allocations: 0 / 416.1 MB, free: 19.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.2644, allocations: 377.6 kB / 416.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004928/0.2649, allocations: 111 kB / 416.6 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008362/0.2658, allocations: 0.7583 MB / 417.4 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.266, allocations: 0.8024 MB / 418.2 MB, free: 16.88 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.211e-05/0.2661, allocations: 4.672 kB / 418.2 MB, free: 16.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.2661, allocations: 11.44 kB / 418.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2661, allocations: 0 / 418.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of Templates: time 0.005334/0.2714, allocations: 4.133 MB / 422.3 MB, free: 12.68 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches