Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001275/0.001276, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001252, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3088, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002858/0.3117, allocations: 1.518 MB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.3136, allocations: 0.8872 MB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.119e-05/0.3137, allocations: 0 / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.46e-05/0.3138, allocations: 7.938 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.336e-05/0.3139, allocations: 23.78 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.3142, allocations: 43.95 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.3144, allocations: 151.7 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3145, allocations: 19.73 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000558/0.315, allocations: 0.5732 MB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.3152, allocations: 75.69 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.608e-05/0.3152, allocations: 12 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.572e-05/0.3153, allocations: 8 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.159e-05/0.3153, allocations: 67.77 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.3155, allocations: 119.1 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.3158, allocations: 365.4 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.3159, allocations: 0 / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3159, allocations: 4 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.3159, allocations: 0 / 412.6 MB, free: 13.64 MB / 334.1 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.0007922/0.3167, allocations: 0.7345 MB / 413.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3167, allocations: 8.031 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.384e-05/0.3168, allocations: 46.69 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.454e-05/0.3169, allocations: 36.7 kB / 413.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.3172, allocations: 278.7 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.3172, allocations: 8.375 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.3172, allocations: 8.375 kB / 413.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002958/0.3175, allocations: 129.7 kB / 413.8 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.3176, allocations: 3.938 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.3176, allocations: 7.938 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3176, allocations: 0 / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001523/0.3178, allocations: 63.91 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.3184, allocations: 468.5 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.3186, allocations: 94.48 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.3188, allocations: 80.89 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.3188, allocations: 4 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.3192, allocations: 206.7 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.3192, allocations: 4 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007973/0.32, allocations: 488.2 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.115e-05/0.3201, allocations: 166.2 kB / 415.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005902/0.3207, allocations: 0.509 MB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.3207, allocations: 33.7 kB / 415.9 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.104e-05/0.3208, allocations: 97.09 kB / 416 MB, free: 9.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.677e-05/0.3208, allocations: 27.84 kB / 416.1 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3209, allocations: 81.56 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3211, allocations: 330.8 kB / 416.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.3212, allocations: 55.97 kB / 416.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.3213, allocations: 77.67 kB / 416.6 MB, free: 9.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.3217, allocations: 343.2 kB / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3217, allocations: 0 / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005315/0.3223, allocations: 395.9 kB / 417.3 MB, free: 8.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.461e-05/0.3224, allocations: 126.8 kB / 417.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3224, allocations: 8.031 kB / 417.5 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.3224, allocations: 4 kB / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-05/0.3224, allocations: 0 / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.3224, allocations: 0 / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.3226, allocations: 11.98 kB / 417.5 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.219e-05/0.3226, allocations: 55.94 kB / 417.5 MB, free: 8.297 MB / 334.1 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,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * 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.0003375/0.323, allocations: 370.7 kB / 417.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.323, allocations: 39.77 kB / 417.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.495e-05/0.3231, allocations: 63.16 kB / 418 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3231, allocations: 4 kB / 418 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3232, allocations: 112 / 418 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3232, allocations: 11.92 kB / 418 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009402/0.3241, allocations: 0.8212 MB / 418.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.3241, allocations: 0 / 418.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.031e-06/0.3241, allocations: 3.984 kB / 418.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.3241, allocations: 4 kB / 418.8 MB, free: 6.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.3242, allocations: 8 kB / 418.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3242, allocations: 0 / 418.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3242, allocations: 3.938 kB / 418.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006249/0.3248, allocations: 0.5448 MB / 419.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.3252, allocations: 248.6 kB / 419.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/0.3252, allocations: 12 kB / 419.6 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3254, allocations: 7.984 kB / 419.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.927e-05/0.3255, allocations: 31.91 kB / 419.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.247e-05/0.3255, allocations: 56.06 kB / 419.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004325/0.326, allocations: 390.9 kB / 420.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.326, allocations: 0 / 420.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002875/0.3263, allocations: 48 kB / 420.2 MB, free: 5.48 MB / 334.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: 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.0009446/0.3272, allocations: 1.093 MB / 421.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004933/0.3277, allocations: 437.5 kB / 421.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3278, allocations: 4.062 kB / 421.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003248/0.3281, allocations: 373.6 kB / 422.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.3287, allocations: 128.9 kB / 422.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.3322, allocations: 2.75 MB / 424.9 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.3327, allocations: 0.8022 MB / 425.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.101e-05/0.3328, allocations: 12.66 kB / 425.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.3328, allocations: 27.42 kB / 425.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3328, allocations: 0 / 425.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02475/0.3576, allocations: 6.022 MB / 431.8 MB, free: 9.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.548/7.906, allocations: 8 kB / 431.8 MB, free: 9.555 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches